summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTuncer Ayaz <tuncer.ayaz@gmail.com>2012-04-16 18:02:48 +0200
committerTuncer Ayaz <tuncer.ayaz@gmail.com>2012-04-16 18:02:48 +0200
commitaeb3081111a327d3dc2f43be664c4a4761abde50 (patch)
tree751fc251adfe0f03c16b2fad3c115adc4cc39f96 /src
parent0e7defaf64a0a75dcd92f5c43674febb69f053ce (diff)
Update getopt.erl
Diffstat (limited to 'src')
-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).