Merge pull request #15449 from albers/completion-help

Remove -h flag from completion and daemon reference
This commit is contained in:
David Calavera 2015-08-12 17:09:51 -07:00
Родитель d50d56b352 ceb11d9660
Коммит d50881e446
5 изменённых файлов: 6 добавлений и 6 удалений

Просмотреть файл

@ -320,7 +320,7 @@ __docker_signals() {
_docker_docker() { _docker_docker() {
local boolean_options=" local boolean_options="
$global_boolean_options $global_boolean_options
--help -h --help
--version -v --version -v
" "
@ -460,7 +460,7 @@ _docker_create() {
_docker_daemon() { _docker_daemon() {
local boolean_options=" local boolean_options="
$global_boolean_options $global_boolean_options
--help -h --help
--icc=false --icc=false
--ip-forward=false --ip-forward=false
--ip-masq=false --ip-masq=false

Просмотреть файл

@ -27,7 +27,7 @@ func main() {
flag.Merge(flag.CommandLine, clientFlags.FlagSet, commonFlags.FlagSet) flag.Merge(flag.CommandLine, clientFlags.FlagSet, commonFlags.FlagSet)
flag.Usage = func() { flag.Usage = func() {
fmt.Fprint(os.Stdout, "Usage: docker [OPTIONS] COMMAND [arg...]\n"+daemonUsage+" docker [ -h | --help | -v | --version ]\n\n") fmt.Fprint(os.Stdout, "Usage: docker [OPTIONS] COMMAND [arg...]\n"+daemonUsage+" docker [ --help | -v | --version ]\n\n")
fmt.Fprint(os.Stdout, "A self-sufficient runtime for containers.\n\nOptions:\n") fmt.Fprint(os.Stdout, "A self-sufficient runtime for containers.\n\nOptions:\n")
flag.CommandLine.SetOutput(os.Stdout) flag.CommandLine.SetOutput(os.Stdout)

Просмотреть файл

@ -16,7 +16,7 @@ or execute `docker help`:
$ docker $ docker
Usage: docker [OPTIONS] COMMAND [arg...] Usage: docker [OPTIONS] COMMAND [arg...]
docker daemon [ --help | ... ] docker daemon [ --help | ... ]
docker [ -h | --help | -v | --version ] docker [ --help | -v | --version ]
-H, --host=[]: The socket(s) to bind to in daemon mode, specified using one or more tcp://host:port, unix:///path/to/socket, fd://* or fd://socketfd. -H, --host=[]: The socket(s) to bind to in daemon mode, specified using one or more tcp://host:port, unix:///path/to/socket, fd://* or fd://socketfd.

Просмотреть файл

@ -32,7 +32,7 @@ parent = "smn_cli"
-G, --group="docker" Group for the unix socket -G, --group="docker" Group for the unix socket
-g, --graph="/var/lib/docker" Root of the Docker runtime -g, --graph="/var/lib/docker" Root of the Docker runtime
-H, --host=[] Daemon socket(s) to connect to -H, --host=[] Daemon socket(s) to connect to
-h, --help=false Print usage --help=false Print usage
--icc=true Enable inter-container communication --icc=true Enable inter-container communication
--insecure-registry=[] Enable insecure registry communication --insecure-registry=[] Enable insecure registry communication
--ip=0.0.0.0 Default IP when binding container ports --ip=0.0.0.0 Default IP when binding container ports

Просмотреть файл

@ -23,7 +23,7 @@ its own man page which explain usage and arguments.
To see the man page for a command run **man docker <command>**. To see the man page for a command run **man docker <command>**.
# OPTIONS # OPTIONS
**-h**, **--help** **--help**
Print usage statement Print usage statement
**--api-cors-header**="" **--api-cors-header**=""