From 51fc89bdda04815a9799029a5bb78bdabed35c91 Mon Sep 17 00:00:00 2001 From: Juan Jose Comellas Date: Tue, 17 Jan 2012 09:41:41 -0300 Subject: [PATCH] Fix function spec to avoid dialyzer warnings --- src/getopt.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/getopt.erl b/src/getopt.erl index 0124943..5b0a83e 100644 --- a/src/getopt.erl +++ b/src/getopt.erl @@ -336,7 +336,7 @@ add_implicit_integer_arg({Name, _Short, _Long, _ArgSpec, _Help}, OptAcc) -> %% @doc Add an option with an argument and convert it to the data type corresponding %% to the argument specification. --spec add_arg(option_spec(), string(), [option()]) -> [option()]. +-spec add_arg(option_spec(), arg_value(), [option()]) -> [option()]. add_arg({Name, _Short, _Long, _ArgSpec, _Help}, Arg, OptAcc) -> [{Name, Arg} | lists:keydelete(Name, 1, OptAcc)].