128 Commits (fcfc69e54ff0e870bae1eaf599b7d15b46abb86b)

Author SHA1 Message Date
Lynn Cyrin 7d0751fa13
add argIsFlag check
5 years ago
Lynn Cyrin 2071bcfb83
checkpoint
5 years ago
Lynn Cyrin 406a1c31b0
update vars and args
5 years ago
FaranIdo 08c24e22ed add missing ExitErrHandler in command + matching test, fixing #816
5 years ago
Ajitem Sahasrabuddhe aed704a9d0
Merge branch 'master' into lint-fixes
5 years ago
Ajitem Sahasrabuddhe fdba7e0f8c
linter fixes
5 years ago
Robert Liebowitz 03153b9cf8 Allow combining short flags globally
5 years ago
Lynn Cyrin f4128a02f3
Update command.go
5 years ago
Lynn Cyrin 38f9e1622d
add environment variable support 🎉
5 years ago
Lynn Cyrin f21b22dd90
cleanup some issues with error display
5 years ago
Lynn Cyrin 9438aba3b8
remove showFlagError, we can use the help printer assertion to accomplish the same goal
5 years ago
Lynn Cyrin 23f09ac1e8
cleanup tests, check required flags in more places
5 years ago
Lynn Cyrin 3d2d6975b4
reduce diff
5 years ago
Lynn Cyrin 0608059cc7
reduce diff
5 years ago
Lynn Cyrin 138dbaafec
Merge branch 'master' into required_flags
5 years ago
Gábor Lipták 9587fc27bd
Correct typo
6 years ago
Valentin Rothberg c23dfba701 short opt handling: fix parsing
6 years ago
Nico Windler 3a87b13b01 Fix args reordering when bool flags are present
7 years ago
Jesse Szwedko e38e4ae2d0 Fix regression of SkipFlagParsing behavior
7 years ago
Jesse Szwedko df562bf1a8 Refactor flag handling logic
7 years ago
baude ceaac7c915 Handle ShortOptions and SkipArgReorder
7 years ago
baude fd5382e7a5 Combine bool short names
7 years ago
zhuchensong 43c8c02cf5 Support POSIX-style short flag combining
7 years ago
Robert Liebowitz b44660ac3d Consider case when sorting strings
7 years ago
Tyler Davis 530df59178 Pass context into handleExitCoder
7 years ago
Tyler Davis 9d61cbad02 Updated command.go to use App handleExitCoder
7 years ago
Jesse Szwedko c64d74a5d9 Do not double print errors from Before()
7 years ago
Joe Richey joerichey@google.com 291122b8f0 Subcommand OnUsageError should be passed to app
7 years ago
Harshavardhana f7d6a07f2d Add support for custom help templates.
7 years ago
Jesse Szwedko 87fe13079e Rely on Command context in Run()
8 years ago
Jesse Szwedko 9913f0cef2 Merge branch 'master' into subcommand-structure
8 years ago
Joe Richey e109e81e6a Subcommand structure should be correctly copied to main structure
8 years ago
Robert Bittle 4ed366e201
Pass the ErrWriter on the root app to subcommands
8 years ago
Joe Richey 0083ae8732 Usage/Description/ArgsUsage correctly copied when using subcommand
8 years ago
Maximilian Meister ac772237b9
command: enable ordering commands by name
8 years ago
Joshua Rubin 2da42640ad
Merge remote-tracking branch 'origin/master' into completion_fix
8 years ago
Jesse Szwedko e367fafa3d Return an error when parsing environment variables for values fails
8 years ago
Jesse Szwedko 0113f56d10 If no action is specified on the command or app, print the help documentation
8 years ago
Joshua Rubin ea3df26e64
make shell autocomplete more robust
8 years ago
Richard Kovacs 4cc2bad36e Display error instead of just say command is incorrect
8 years ago
Shukui Yang 5d108a4435 bug fix when SkipFlagParsing is false and SkipArgReorder is true
8 years ago
Frances Bar 3df4b71842 Backport no argument reordering as an option
8 years ago
Matt Farina 07ce8bf79c Cleaned up else per golint
8 years ago
Matt Farina 2f110bd745 Cleaned up exported func comments per golint
8 years ago
Dan Buch 5c641d69b4
Merge branch 'hidden_command' of https://github.com/psmit/cli into psmit-hidden_command
9 years ago
Dan Buch fed78b8bab
Rework of hidden flag impl plus some Action func corrections
9 years ago
Dan Buch e671f0b23b Merge pull request #339 from jack230230/master
9 years ago
王振威 f72d405107 Change Extras to Metadata
9 years ago
Dan Buch d45f7c1fe2
Allow for legacy and newer Action func signatures
9 years ago
Dan Buch f688d47415
Encapsulate ExitCoder check into a lil func
9 years ago