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

Help command produces invalid output with invalid flag #114

Open
kitd opened this issue Apr 17, 2018 · 1 comment
Open

Help command produces invalid output with invalid flag #114

kitd opened this issue Apr 17, 2018 · 1 comment
Assignees

Comments

@kitd
Copy link

kitd commented Apr 17, 2018

If you issue a help command on any plugin and add a flag, the help command fails and produces odd output.

Eg.

Entering bx pr help -n xxx or bx help -n xxx

Produces:

Incorrect Usage.

NAME:
   help - 

USAGE:

Expected behaviour would be for help to ignore any flag parsing, but if output was needed, something a bit more meaningful might be better.

@weieigao
Copy link
Contributor

weieigao commented Apr 20, 2018

@kitd Why should help command ignore flag parsing? We allow plugin to have help subcommand to override default help, what if the help command do have some flags?
But I agree that we should refine the above output to make it more descriptive

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

2 participants