yanson694 / shflags

Automatically exported from code.google.com/p/shflags
0 stars 0 forks source link

It is not possible to have a long option which contains a '-' character. #14

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Define a long option name with a '-' character like this :
DEFINE_string 'overwrite-revision' '' 'overwrite the revision number' in the 
script,
2. call the script with '-h' flag.
3. the script exit abnormally and print some error messages.

What is the expected output? What do you see instead?
./shflags: line 315: FLAGS_overwrite-revision=: command not found
./shflags: line 316: __flags_overwrite-revision_type=4: command not found
./shflags: line 318: __flags_overwrite-revision_default=: command not found
./shflags: line 319: __flags_overwrite-revision_help=overwrite the revision 
number: command not found
./shflags: line 320: __flags_overwrite-revision_short=~: command not found
./shflags: line 362: [: revision_type:-: integer expression expected
./shflags: line 370: [: revision_type:-: integer expression expected
USAGE: ./build [flags] args
flags:
./shflags: line 930: [: revision_type:-: integer expression expected
./shflags: line 947: flags_defaultStr_: unbound variable

What version of the product are you using? On what operating system?
shflags 1.0.3 on Linux

Please provide any additional information below.

Original issue reported on code.google.com by graziano...@gmail.com on 15 Apr 2011 at 8:59

GoogleCodeExporter commented 9 years ago
Fixed in CL# 146.

Original comment by kate.war...@gtempaccount.com on 28 Jun 2011 at 1:31