Commit Graph

11 Commits

Author SHA1 Message Date
Alec Thomas cdcdf49f67 Display usage information on error. 2018-06-21 10:08:01 +10:00
Alec Thomas d9c0dd25b1 Compact help should display full command. 2018-06-21 00:04:35 +10:00
Alec Thomas 36506509f1 Better error reporting for short flags. 2018-06-20 22:45:34 +10:00
Alec Thomas 4edc701d63 Correctly check for required positionals. 2018-06-20 22:36:33 +10:00
Alec Thomas 653531d6bc Start making help slightly configurable. 2018-06-20 21:55:39 +10:00
Alec Thomas 73064a687f Add <command> to help when a sub-command is required. 2018-06-08 15:20:58 +10:00
Alec Thomas 96fa9c43d5 Improved documentation and help. 2018-06-05 11:36:51 +10:00
Alec Thomas fdc7230e22 Separate validation into a distinct step.
This allows help to be called even when the parse trace is invalid.
Without this, the command-line would have to be valid in order to use
help at all, which defeats the purpose.
2018-05-31 15:20:45 +10:00
Alec Thomas cf89213e1e Add hook support. 2018-05-27 18:01:10 +10:00
Gerald Kaszuba 3eb5e285ed Use "kong" as tag keys fixes #9 (#10) 2018-05-21 09:25:19 -04:00
Alec Thomas aa1bf9dcb5 Initial commit. 2018-04-10 16:51:06 +10:00