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

Different return code for unknown (sub)command #749

Closed
albttx opened this issue Sep 20, 2018 · 1 comment
Closed

Different return code for unknown (sub)command #749

albttx opened this issue Sep 20, 2018 · 1 comment

Comments

@albttx
Copy link

albttx commented Sep 20, 2018

link with: #706

  • An unknown command return 1
  • An unknown subcommand return 0
$ ./test baz ; echo $?
unknown command "baz" for "./test"
1

$ ./test foo unkown ; echo $?
Usage:
  test foo [command]

Available Commands:
  bar         
  baz         

Flags:
  -h, --help   help for foo

Use "test foo [command] --help" for more information about a command.
0 # <- It's should be 1
@github-actions
Copy link

github-actions bot commented Apr 9, 2020

This issue is being marked as stale due to a long period of inactivity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant