diff --git a/src/getopt.erl b/src/getopt.erl index 5b0a83e..f3c3573 100644 --- a/src/getopt.erl +++ b/src/getopt.erl @@ -289,7 +289,7 @@ add_option_no_arg({Name, _Short, _Long, ArgSpec, _Help} = OptSpec, OptAcc) -> %% the option had. This is needed to support options like "-vvv" to %% return something like {verbose, 3}. add_implicit_integer_arg(OptSpec, OptAcc); - true -> + _ -> throw({error, {missing_option_arg, Name}}) end.