diff options
author | Tuncer Ayaz <tuncer.ayaz@gmail.com> | 2012-04-16 18:02:48 +0200 |
---|---|---|
committer | Tuncer Ayaz <tuncer.ayaz@gmail.com> | 2012-04-16 18:02:48 +0200 |
commit | aeb3081111a327d3dc2f43be664c4a4761abde50 (patch) | |
tree | 751fc251adfe0f03c16b2fad3c115adc4cc39f96 /src | |
parent | 0e7defaf64a0a75dcd92f5c43674febb69f053ce (diff) |
Update getopt.erl
Diffstat (limited to 'src')
-rw-r--r-- | src/getopt.erl | 2 |
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). |