Commit Graph

4 Commits

Author SHA1 Message Date
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
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
03153b9cf8 Allow combining short flags globally 2019-08-05 06:38:23 -04:00