mirror of https://github.com/docker/cli.git
Make the -h flag deprecated.
Signed-off-by: Daniel Nephin <dnephin@docker.com>
This commit is contained in:
parent
25892d27be
commit
82c85e1e83
|
@ -36,6 +36,9 @@ func NewCobraAdaptor(clientFlags *cliflags.ClientFlags) CobraAdaptor {
|
|||
volume.NewVolumeCommand(dockerCli),
|
||||
)
|
||||
|
||||
rootCmd.PersistentFlags().BoolP("help", "h", false, "Print usage")
|
||||
rootCmd.PersistentFlags().MarkShorthandDeprecated("help", "please use --help")
|
||||
|
||||
return CobraAdaptor{
|
||||
rootCmd: rootCmd,
|
||||
dockerCli: dockerCli,
|
||||
|
|
Loading…
Reference in New Issue