nkabir / shflags

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

DEFINE_boolean misbehaves when help-string is empty #28

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. use DEFINE_boolean 'force' false ''

What is the expected output?
USAGE: ./test.sh [flags]
flags:
  -f,--[no]force:  (default: false)
  -h,--[no]help:  show this help (default: false)

What do you see instead?
USAGE: ./test.sh [flags]
flags:
flags:ERROR invalid flag name (__flags_force_help)
  -f,--[no]force:  (default: false)
  -h,--[no]help:  show this help (default: false)

What version of the product are you using? On what operating system?
shflags-1.0.3, bash 4.2.24, openSUSE 12.2 x86_64

Original issue reported on code.google.com by eta...@gmail.com on 13 May 2013 at 2:31