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

fix(help): Optional arg values in brackets #3347

Merged
merged 1 commit into from Jan 26, 2022
Merged

Commits on Jan 26, 2022

  1. fix(help): Optional arg values in brackets

    When an Arg uses .min_values(0), that arg's value(s) are effectively
    optional. This is conventionaly denoted in help messages by wrapping the
    arg's values in square brackets. For example:
    
        --foo[=value]
        --bar [value]
    
    This kind of argument can be seen in the wild in many git commands; e.g.
    git-status(1).
    
    Signed-off-by: Peter Grayson <pete@jpgrayson.net>
    jpgrayson committed Jan 26, 2022
    Configuration menu
    Copy the full SHA
    7eea7d2 View commit details
    Browse the repository at this point in the history