Fix function spec to avoid dialyzer warnings

This commit is contained in:
Juan Jose Comellas 2012-01-17 09:41:41 -03:00
parent 9283bc0697
commit 51fc89bdda

View File

@ -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 %% @doc Add an option with an argument and convert it to the data type corresponding
%% to the argument specification. %% 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) -> add_arg({Name, _Short, _Long, _ArgSpec, _Help}, Arg, OptAcc) ->
[{Name, Arg} | lists:keydelete(Name, 1, OptAcc)]. [{Name, Arg} | lists:keydelete(Name, 1, OptAcc)].