-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Please change error handling for gh config set ONE_ARG
#9288
Comments
Heyo. That does sound annoying and I can understand why you would want this. Can you give some examples of programs you use that report the name as you say is traditional? Some example I see are:
On the other hand,
I wonder what the thought process is there. |
yes, % bash --unknown-flag
bash: --unknown-flag: invalid option
Usage: bash [GNU long option] [option] ...
bash [GNU long option] [option] script-file ...
... even
gnu
|
fwiw, homebrew now identifies itself in errors: Homebrew/brew@8c4c731 |
Describe the bug
I'm running a buggy script which uses
gh config set ...
and it's buggy. But it isn't showing the commands it runs, it only reports the output it receives from the programs it runs (and it's running lots of commands, so it isn't obvious that this is the command that it ran that triggered this output).Steps to reproduce the behavior
gh config set /dev/null
accepts 2 arg(s), received 1
gh config set pager
accepts 2 arg(s), received 1
Expected vs actual behavior
gh config set: unrecognized config '/dev/null'
orgh config: 'set pager' requires a value
Logs
The text was updated successfully, but these errors were encountered: