moby/cli
Sebastiaan van Stijn 45920009cc Don't automagically add "[OPTIONS]" to usage
This removes the logic to automatically
add [OPTIONS] to the usage output.

The current logic was broken if a command
only has deprecated or hidden flags, and
in many cases put the [OPTIONS] in the
wrong location.

Requiring the usage string to be set
manually gives more predictable results,
and shouldn't require much to maintain.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit 4f0b510552)
Signed-off-by: Tibor Vass <tibor@docker.com>
2016-07-25 23:15:41 -07:00
..
cobraadaptor Don't automagically add "[OPTIONS]" to usage 2016-07-25 23:15:41 -07:00
flags Cleanup the structure of the cli package. 2016-04-27 14:25:47 -04:00
cli.go Don't automagically add "[OPTIONS]" to usage 2016-07-25 23:15:41 -07:00
error.go Avoid back and forth conversion between strings and bytes. 2016-06-16 23:36:53 -07:00
flagerrors.go Convert 'docker create' to use cobra and pflag 2016-06-04 13:57:30 +02:00
required.go fix typos 2016-07-08 15:32:14 -07:00
usage.go Migrate cp command to cobra 2016-06-14 17:16:59 +02:00