diff --git a/src/getopt.erl b/src/getopt.erl index 326071c..175b7a5 100644 --- a/src/getopt.erl +++ b/src/getopt.erl @@ -442,7 +442,7 @@ is_boolean_arg(Arg) -> -spec is_integer_arg(string()) -> boolean(). -is_integer_arg([$- | Tail]) -> +is_integer_arg("-" ++ Tail) -> is_non_neg_integer_arg(Tail); is_integer_arg(Arg) -> is_non_neg_integer_arg(Arg).