summaryrefslogtreecommitdiff
path: root/src/getopt.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/getopt.erl')
-rw-r--r--src/getopt.erl2
1 files changed, 1 insertions, 1 deletions
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).