1
0
mirror of https://github.com/docker/cli.git synced 2026-01-18 08:21:31 +03:00

Make the -h flag deprecated.

Signed-off-by: Daniel Nephin <dnephin@docker.com>
Upstream-commit: 82c85e1e83
Component: cli
This commit is contained in:
Daniel Nephin
2016-05-31 14:47:51 -07:00
parent 625794a555
commit c79c171774

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,