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

Improve error for args_conflicts_with_subcommands #3939

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Commits on Jul 15, 2022

  1. Improve error for args_conflicts_with_subcommands

    Before this patch when running into errors due to
    `args_conflicts_with_subcommands`, you'd get an output looking like
    this:
    
    ```
    error: The subcommand 'auth' wasn't recognized
    
    	Did you mean 'auth'?
    ```
    
    This is highly confusing and leaves the user without any information on
    what actually went wrong.
    
    This patch addresses this problem by introducing a new error message
    dedicated for this scenario which will inform the user that the specific
    combination of argument and subcommand used is not valid.
    cd-work committed Jul 15, 2022
    Configuration menu
    Copy the full SHA
    03ba0ee View commit details
    Browse the repository at this point in the history

Commits on Jul 18, 2022

  1. Validate error output

    cd-work committed Jul 18, 2022
    Configuration menu
    Copy the full SHA
    9943224 View commit details
    Browse the repository at this point in the history