From 1dd5a75277beb5215895fc8255ed112ec8df1e80 Mon Sep 17 00:00:00 2001 From: Kostis Sagonas Date: Mon, 11 Oct 2010 04:36:13 +0800 Subject: [PATCH] Dialyzer related cleanups --- src/getopt.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/getopt.erl b/src/getopt.erl index 454a96e..bb7fae2 100644 --- a/src/getopt.erl +++ b/src/getopt.erl @@ -285,7 +285,7 @@ arg_spec_type(Type) when is_atom(Type) -> %% @doc Convert an argument string to its corresponding data type. --spec to_type(atom(), string()) -> arg_value(). +-spec to_type(arg_type(), string()) -> arg_value(). to_type(binary, Arg) -> list_to_binary(Arg); to_type(atom, Arg) -> @@ -327,7 +327,7 @@ is_arg_false(Arg) -> (Arg =:= "0"). --spec is_valid_arg(arg_spec() | arg_type(), string()) -> boolean(). +-spec is_valid_arg(arg_spec(), nonempty_string()) -> boolean(). is_valid_arg({Type, _DefaultArg}, Arg) -> is_valid_arg(Type, Arg); is_valid_arg(boolean, Arg) ->