1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/cli
Sebastiaan van Stijn 4f0b510552
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>
2016-07-19 00:07:19 +02:00
..
cobraadaptor Don't automagically add "[OPTIONS]" to usage 2016-07-19 00:07:19 +02: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-19 00:07:19 +02:00
error.go Avoid back and forth conversion between strings and bytes. 2016-06-15 09:55:40 -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-05 20:42:17 +08:00
usage.go Use spf13/cobra for docker update 2016-06-22 11:06:44 -07:00