Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include --help and --version flag in completion #1813

Merged
merged 1 commit into from Oct 4, 2022

Commits on Oct 1, 2022

  1. Include --help and --version flag in completion

    Fixes spf13#1786
    
    The --help, -h, --version and -v flags are normally added when the
    `execute()` function is called on a command.  When doing completion
    we don't call `execute()` so we need to add these flags explicitly to
    the command being completed.
    
    Also, we disable all further completions if the 'help' or 'version'
    flags are present on the command-line.
    
    Signed-off-by: Marc Khouzam <marc.khouzam@gmail.com>
    marckhouzam committed Oct 1, 2022
    Copy the full SHA
    ccb45fb View commit details
    Browse the repository at this point in the history