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

feat(completion): add default completion hidden if there are no subcmds #1450

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on Dec 10, 2021

  1. feat(completion): add default completion hidden if there are no subco…

    …mmands
    
    The default completion is useful also in cases where there are no
    subcommands, for example to provide completion for flags, and custom
    completions for their values.
    
    But when there are no subcommands, make it hidden. Simply adding it
    non-hidden would result in a help section to be added just for it which
    is just noise: the completion command is not the primary functionality
    of the program, yet it would be prominently displayed in help output. It
    would also get included among argument completions, which could be a
    source of confusion.
    scop committed Dec 10, 2021
    Configuration menu
    Copy the full SHA
    c7cee2a View commit details
    Browse the repository at this point in the history