Skip to content

Conversation

@deads2k
Copy link
Contributor

@deads2k deads2k commented Mar 26, 2015

If an invalid argument is passed to a subcommand, but the root command is runnable, the flags are reparsed and the wrong error message appears to a user.

For instance

openshift start node --images=foo --master=bar

If openshift start node has a --images flag, but does not have a --master flag, the parse will fail (good). But after that failure, if openshift is runnable and doesn't have any flags, then the message displayed to the user unknown flag: --images which is incorrect.

I've added a test to demonstrate.

@bep bep changed the title prevent incorrect flag message on bad subcommand parse Prevent incorrect flag message on bad subcommand parse Mar 26, 2015
@eparis
Copy link
Collaborator

eparis commented Apr 6, 2015

Closed via #84

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

Successfully merging this pull request may close these issues.

2 participants