Commit Graph
16 Commits
Author SHA1 Message Date
Robert Liebowitz b5bef8e0b6 Merge branch 'clean-help-printer' into help-printer-v2 2019-10-20 23:41:33 -04:00
Robert Liebowitz 9ab178d174 Make app help behavior consistent with commands 2019-10-17 05:50:38 -04:00
Robert Liebowitz bab428af09 Ensure command help always prints with overridden print functions 2019-10-17 05:12:17 -04:00
Robert Liebowitz a14194aa33 Improve documentation for HelpPrinter/HelpPrinterCustom 2019-10-16 07:57:33 -04:00
Robert Liebowitz b52cca036a Simplify duplicated function call 2019-10-16 07:24:21 -04:00
Robert Liebowitz e2a8dfe314 Decouple help printer for custom templates 2019-10-16 07:17:13 -04:00
Robert Liebowitz f5306b622f Ensure infinite loop cannot occur in parsing 2019-10-11 23:00:48 -04:00
Robert Liebowitz df740f6562 Fix infinite loop flag parsing with short options 2019-10-11 23:00:45 -04:00
Robert Liebowitz 7d46b6d7f1 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-18 09:49:27 +05:30
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