Commit Graph
7 Commits
Author SHA1 Message Date
Robert Liebowitz 06e3d38d88 Avoid panic for missing flag value
Currently, in cases where a flag value is required but not passed and
short-option handling is enabled, a panic will occur due to a nil
pointer dereference. This prevents that situation from occurring,
instead propagating the appropriate error.
2019-09-13 06:11:09 -04:00
Robert Liebowitz a77c440b84 Merge branch 'master' into combined 2019-08-06 22:33:49 -04:00
Robert LiebowitzandAjitem Sahasrabuddhe 8d31c5e167 Update README.md
Co-Authored-By: Ajitem Sahasrabuddhe <ajitem.s@outlook.com>
2019-08-05 07:05:07 -04:00
Robert Liebowitz 03153b9cf8 Allow combining short flags globally 2019-08-05 06:38:23 -04:00
Robert Liebowitz b44660ac3d Consider case when sorting strings
This makes sorting flags and other sections consistent with how most
command line tools function, by placing both flags `-A` and `-a` before
a flag `-B`.
2017-10-28 03:00:11 -04:00
Robert Liebowitz cbbe4c1a2c Add tests for custom flag prefix/env hints 2017-09-18 00:44:42 -04:00
rliebz 11d45572f9 Export funcs to configure flag prefix/env hints
This will allow users to customize the prefix section or env hint
section of the flag entries in the help menu without having to
reimplement the rest of the logic required in defining FlagStringer.
2017-09-18 00:00:27 -04:00