Added 'default_in_desc' parameter to define_flag, that specifies whether to put the default value or not in its description. This is mainly because I think it didn't make very much sense to show to the default for, e.g. --help. See the example I added for usage.
In my opinion:
Flags:
--help, -h # Displays help for the current command.
--print-why # Prints why
--why (default: 42...)
Flags:
--help, -h (default: false) # Displays help for the current command.
--print-why (default: false) # Prints why
--why (default: 42...)
However, what I am not so sure about is the name of the option 'default_in_desc', any better name would be greatly appreciated, as I am not a native english speaker.
If you people here do not have anything against this, I can add info on this option in the readme.
Added '
default_in_desc
' parameter todefine_flag
, that specifies whether to put the default value or not in its description. This is mainly because I think it didn't make very much sense to show to the default for, e.g.--help
. See the example I added for usage.In my opinion:
Where
print-why
is defined like this:Makes much more sense than this:
However, what I am not so sure about is the name of the option '
default_in_desc
', any better name would be greatly appreciated, as I am not a native english speaker.If you people here do not have anything against this, I can add info on this option in the readme.