Skip to content

Conversation

@duglin
Copy link
Contributor

@duglin duglin commented May 23, 2015

Carry #11858

Continues 11858 by:
- Making sure the exit code is always zero when we ask for help
- Making sure the exit code isn't zero when we print help on error cases
- Making sure both short and long usage go to the same stream (stdout vs stderr)
- Making sure all docker commands support --help
- Test that all cmds send --help to stdout, exit code 0, show full usage, no blank lines at end
- Test that all cmds (that support it) show short usage on bad arg to stderr, no blank line at end
- Test that all cmds complain about a bad option, no blank line at end
- Test that docker (w/o subcmd) does the same stuff mentioned above properly

Signed-off-by: Doug Davis dug@us.ibm.com

Signed-off-by: Jason Shepherd <jason@jasonshepherd.net>
Continues 11858 by:
- Making sure the exit code is always zero when we ask for help
- Making sure the exit code isn't zero when we print help on error cases
- Making sure both short and long usage go to the same stream (stdout vs stderr)
- Making sure all docker commands support --help
- Test that all cmds send --help to stdout, exit code 0, show full usage, no blank lines at end
- Test that all cmds (that support it) show short usage on bad arg to stderr, no blank line at end
- Test that all cmds complain about a bad option, no blank line at end
- Test that docker (w/o subcmd) does the same stuff mentioned above properly

Signed-off-by: Doug Davis <dug@us.ibm.com>
@duglin
Copy link
Contributor Author

duglin commented May 26, 2015

@jfrazelle did you want to try to get this one into 1.7 ?

@jessfraz
Copy link
Contributor

LGTM

@jessfraz
Copy link
Contributor

thanks @duglin

@duglin
Copy link
Contributor Author

duglin commented May 27, 2015

ping @tiborvass @LK4D4

@calavera
Copy link
Contributor

LGMT

calavera added a commit that referenced this pull request May 28, 2015
@calavera calavera merged commit 617a0c2 into moby:master May 28, 2015
@thaJeztah
Copy link
Member

ping @vieux @jfrazelle this is a continuation on #11858, which got cherry-picked into 1.7. Does this need to get in as well?

@jessfraz
Copy link
Contributor

jessfraz commented Jun 1, 2015

cherry-picked

@duglin duglin deleted the niceHelp2 branch July 10, 2015 14:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants