-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Comparing changes
Open a pull request
base repository: urfave/cli
base: v3.9.0
head repository: urfave/cli
compare: main
- 17 commits
- 6 files changed
- 7 contributors
Commits on Mar 13, 2026
-
fix: let completion command use normal flag parsing pipeline
Remove the isCompletionCommand bypass in command_run.go so the completion command goes through normal flag parsing. This enables -h/--help support and proper unknown flag errors. To prevent parent required flags from breaking the completion command, skip required flag checks in checkAllRequiredFlags when hitting a completion command (both its own inherited flags and parent flags). Co-Authored-By: Claude Opus 4.6 <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for e2797cf - Browse repository at this point
Copy the full SHA e2797cfView commit details -
fix: implement shell names as subcommands of completion command
Previously, `completion bash --help` resulted in "No help topic for 'bash'" because shell names were positional arguments, not subcommands. Now each shell (bash, zsh, fish, pwsh) is a proper subcommand of the completion command, making help work correctly for `completion bash --help`. Co-Authored-By: Claude Opus 4.6 <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for e8afe93 - Browse repository at this point
Copy the full SHA e8afe93View commit details -
fix: hide GLOBAL OPTIONS in completion command help
The completion command ignores global flags by design, so displaying them in --help output is misleading. Return nil from VisiblePersistentFlags() when isCompletionCommand is true. Co-Authored-By: Claude Opus 4.6 <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 018710f - Browse repository at this point
Copy the full SHA 018710fView commit details -
fix: use root Writer in completion subcommand and add write error test
The completion subcommand was using cmd.Writer which defaults to os.Stdout instead of the root command's configured Writer. Also fix inverted assertion in TestCompletionShell and add TestCompletionShellWriteError to cover the Writer error path. Co-Authored-By: Claude Opus 4.6 <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 209577f - Browse repository at this point
Copy the full SHA 209577fView commit details
Commits on Mar 15, 2026
-
Fix 2257 - Remove incorrect flag check
If the argument passed with a command isn't a sub command, there are two checks performed - check if the command has a default command, and check if the argument passed is a flag. In the case that the default command doesn't exist, and the argument passed is the name of a flag, the sub command resolves to nil, which it was previously as well. Implying the check for the flag name doesn't have affect the sub command resolution. Since a default command doesn't exist, the cmd.parsedArgs list ends up with an empty argument as its zeroth element. This commit removes the flag name check
Configuration menu - View commit details
-
Copy full SHA for bd93f66 - Browse repository at this point
Copy the full SHA bd93f66View commit details
Commits on May 12, 2026
-
Configuration menu - View commit details
-
Copy full SHA for fd236b7 - Browse repository at this point
Copy the full SHA fd236b7View commit details
Commits on May 13, 2026
-
fix: resolve merge leftovers from #2319 in help/completion flag parsing
The merge of main into this branch silently kept incompatible halves of two overlapping fixes (PR #2319 and this branch's earlier completion-command work). command_run.go was still bypassing pre-parse for cmd.Name == helpName, dropping flags on user-defined help subcommands, and checkAllRequiredFlags had a redundant inner break. Drop the helpName pre-parse bypass and the now-dead inner break so the state matches the intended post-#2319 behavior. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 21294e5 - Browse repository at this point
Copy the full SHA 21294e5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0215904 - Browse repository at this point
Copy the full SHA 0215904View commit details -
Configuration menu - View commit details
-
Copy full SHA for ede9303 - Browse repository at this point
Copy the full SHA ede9303View commit details -
Configuration menu - View commit details
-
Copy full SHA for e0ae9d3 - Browse repository at this point
Copy the full SHA e0ae9d3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 466b5d3 - Browse repository at this point
Copy the full SHA 466b5d3View commit details
Commits on May 15, 2026
-
test: regression for #2234 empty positional arg after a flag
Signed-off-by: Charlie Tonneslan <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 49998f2 - Browse repository at this point
Copy the full SHA 49998f2View commit details
Commits on May 16, 2026
-
Merge pull request #2328 from c-tonneslan/empty-arg-with-flag-regression
test: regression for #2234 empty positional arg after a flag
Configuration menu - View commit details
-
Copy full SHA for 30e57ad - Browse repository at this point
Copy the full SHA 30e57adView commit details -
Merge pull request #2279 from urfave/fix/completion-command-normal-fl…
…ag-parsing Improve the completion command to handle flags and arguments properly
Configuration menu - View commit details
-
Copy full SHA for 7f45475 - Browse repository at this point
Copy the full SHA 7f45475View commit details -
Merge pull request #2280 from MohitPanchariya/issue2257
Fix 2257 - Remove incorrect flag check
Configuration menu - View commit details
-
Copy full SHA for 9229c61 - Browse repository at this point
Copy the full SHA 9229c61View commit details
Commits on May 19, 2026
-
chore(deps): bump mkdocs-git-revision-date-localized-plugin
Bumps the python-packages group with 1 update: [mkdocs-git-revision-date-localized-plugin](https://github.com/timvink/mkdocs-git-revision-date-localized-plugin). Updates `mkdocs-git-revision-date-localized-plugin` from 1.5.1 to 1.5.2 - [Release notes](https://github.com/timvink/mkdocs-git-revision-date-localized-plugin/releases) - [Commits](timvink/mkdocs-git-revision-date-localized-plugin@v1.5.1...v1.5.2) --- updated-dependencies: - dependency-name: mkdocs-git-revision-date-localized-plugin dependency-version: 1.5.2 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: python-packages ... Signed-off-by: dependabot[bot] <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for ee92732 - Browse repository at this point
Copy the full SHA ee92732View commit details -
Merge pull request #2334 from urfave/dependabot/pip/python-packages-e…
…2bfe24654 chore(deps): bump mkdocs-git-revision-date-localized-plugin from 1.5.1 to 1.5.2 in the python-packages group
Configuration menu - View commit details
-
Copy full SHA for eb79f05 - Browse repository at this point
Copy the full SHA eb79f05View commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff v3.9.0...main