DockerCLI/cli
Sebastiaan van Stijn 00d080269a
Hide [flags] in usage output
This patch hides the [flags] in the usage output of commands, using the
new `.DisableFlagsInUseLine` option, instead of the temporary workaround
added in 8e600e10f7

Before this change:

    docker run
    "docker run" requires at least 1 argument.
    See 'docker run --help'.

    Usage:  docker run [OPTIONS] IMAGE [COMMAND] [ARG...] [flags]

    Run a command in a new container

After this change:

    docker run
    "docker run" requires at least 1 argument.
    See 'docker run --help'.

    Usage:  docker run [OPTIONS] IMAGE [COMMAND] [ARG...]

    Run a command in a new container

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2018-05-19 02:51:55 +02:00
..
command Merge pull request #1065 from thaJeztah/fix-kube-alignment 2018-05-18 14:54:42 +02:00
compose Switch from x/net/context to context 2018-05-11 16:49:43 -07:00
config print a big warning about cleartext passwords 2018-03-26 16:18:32 +02:00
debug updated vendoring 2017-09-01 19:41:06 -04:00
flags Use Cobra built-in --version feature 2018-05-19 02:51:43 +02:00
manifest Convert assert.Check(t, is.Error()) to assert.Error 2018-03-06 16:00:28 -05:00
registry/client Bump moby to d37f5c6bdf788a6cb82c07fb707e31a240eff5f9 2018-05-18 11:44:14 +02:00
trust Switch from x/net/context to context 2018-05-11 16:49:43 -07:00
winresources Add windows resources to binary. 2017-05-15 18:03:03 -04:00
cobra.go Hide [flags] in usage output 2018-05-19 02:51:55 +02:00
error.go Import docker/docker/cli 2017-04-17 17:40:59 -04:00
required.go Singularize / pluralize "argument(s)" in error message 2017-08-12 18:25:38 +02:00
required_test.go Post migration fixes 2018-03-05 19:41:17 -05:00
version.go Fix grammar typo in comment 2018-02-28 11:29:40 -05:00