Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: urfave/cli
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v3.9.0
Choose a base ref
...
head repository: urfave/cli
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
  • 17 commits
  • 6 files changed
  • 7 contributors

Commits on Mar 13, 2026

  1. 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]>
    suzuki-shunsuke and claude committed Mar 13, 2026
    Configuration menu
    Copy the full SHA
    e2797cf View commit details
    Browse the repository at this point in the history
  2. 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]>
    suzuki-shunsuke and claude committed Mar 13, 2026
    Configuration menu
    Copy the full SHA
    e8afe93 View commit details
    Browse the repository at this point in the history
  3. 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]>
    suzuki-shunsuke and claude committed Mar 13, 2026
    Configuration menu
    Copy the full SHA
    018710f View commit details
    Browse the repository at this point in the history
  4. 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]>
    suzuki-shunsuke and claude committed Mar 13, 2026
    Configuration menu
    Copy the full SHA
    209577f View commit details
    Browse the repository at this point in the history

Commits on Mar 15, 2026

  1. 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
    MohitPanchariya committed Mar 15, 2026
    Configuration menu
    Copy the full SHA
    bd93f66 View commit details
    Browse the repository at this point in the history

Commits on May 12, 2026

  1. Configuration menu
    Copy the full SHA
    fd236b7 View commit details
    Browse the repository at this point in the history

Commits on May 13, 2026

  1. 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]>
    suzuki-shunsuke and claude committed May 13, 2026
    Configuration menu
    Copy the full SHA
    21294e5 View commit details
    Browse the repository at this point in the history
  2. Add unit test

    MohitPanchariya committed May 13, 2026
    Configuration menu
    Copy the full SHA
    0215904 View commit details
    Browse the repository at this point in the history
  3. Resolve conflict

    MohitPanchariya committed May 13, 2026
    Configuration menu
    Copy the full SHA
    ede9303 View commit details
    Browse the repository at this point in the history
  4. Check error

    MohitPanchariya committed May 13, 2026
    Configuration menu
    Copy the full SHA
    e0ae9d3 View commit details
    Browse the repository at this point in the history
  5. Use better names

    MohitPanchariya committed May 13, 2026
    Configuration menu
    Copy the full SHA
    466b5d3 View commit details
    Browse the repository at this point in the history

Commits on May 15, 2026

  1. test: regression for #2234 empty positional arg after a flag

    Signed-off-by: Charlie Tonneslan <[email protected]>
    c-tonneslan committed May 15, 2026
    Configuration menu
    Copy the full SHA
    49998f2 View commit details
    Browse the repository at this point in the history

Commits on May 16, 2026

  1. Merge pull request #2328 from c-tonneslan/empty-arg-with-flag-regression

    test: regression for #2234 empty positional arg after a flag
    dearchap authored May 16, 2026
    Configuration menu
    Copy the full SHA
    30e57ad View commit details
    Browse the repository at this point in the history
  2. Merge pull request #2279 from urfave/fix/completion-command-normal-fl…

    …ag-parsing
    
    Improve the completion command to handle flags and arguments properly
    dearchap authored May 16, 2026
    Configuration menu
    Copy the full SHA
    7f45475 View commit details
    Browse the repository at this point in the history
  3. Merge pull request #2280 from MohitPanchariya/issue2257

    Fix 2257 - Remove incorrect flag check
    dearchap authored May 16, 2026
    Configuration menu
    Copy the full SHA
    9229c61 View commit details
    Browse the repository at this point in the history

Commits on May 19, 2026

  1. 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]>
    dependabot[bot] authored and Juneezee committed May 19, 2026
    Configuration menu
    Copy the full SHA
    ee92732 View commit details
    Browse the repository at this point in the history
  2. 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
    Juneezee authored May 19, 2026
    Configuration menu
    Copy the full SHA
    eb79f05 View commit details
    Browse the repository at this point in the history
Loading