Merge pull request #6052 from rhatdan/help

--help option and help command should print to stdout not stderr
This commit is contained in:
Victor Vieux
2014-08-27 11:17:16 -07:00
38 changed files with 335 additions and 68 deletions
+13
View File
@@ -15,6 +15,19 @@ or execute `docker help`:
...
## Help
To list the help on any command just execute the command, followed by the `--help` option.
$ sudo docker run --help
Usage: docker run [OPTIONS] IMAGE [COMMAND] [ARG...]
Run a command in a new container
-a, --attach=[] Attach to STDIN, STDOUT or STDERR.
-c, --cpu-shares=0 CPU shares (relative weight)
...
## Option types
Single character commandline options can be combined, so rather than