Make the -h flag deprecated.

Signed-off-by: Daniel Nephin <dnephin@docker.com>
Upstream-commit: 9b2bb64a3800619b5810e8baf59d72613e7ccd19
Component: engine
This commit is contained in:
Daniel Nephin
2016-05-31 14:47:51 -07:00
parent 93473dcef1
commit 7115ea3c86

View File

@ -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,