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(parser): Prefer invalid subcommands over invalid args #4219

Merged
merged 1 commit into from Sep 15, 2022

Commits on Sep 15, 2022

  1. fix(parser): Prefer invalid subcommands over invalid args

    Just having `--help` or `--version` can make us get invalid args instead
    of invalid subcommands.   It doesn't make sense to do this unless
    positionals are used.  Even then it might not make sense but this is at
    least a step in the right direction.
    
    Unsure how I feel about this being backported to clap 3.  It most likely
    would be fine?
    
    This was noticed while looking into clap-rs#4218
    epage committed Sep 15, 2022
    Copy the full SHA
    b7d13df View commit details
    Browse the repository at this point in the history