Browse code

Show the legacy registry flag only in the daemon arguments

Signed-off-by: Richard Scothern <richard.scothern@gmail.com>

Richard Scothern authored on 2016/01/05 07:45:17
Showing 1 changed files
... ...
@@ -56,7 +56,7 @@ func (options *Options) InstallFlags(cmd *flag.FlagSet, usageFn func(string) str
56 56
 	cmd.Var(&options.Mirrors, []string{"-registry-mirror"}, usageFn("Preferred Docker registry mirror"))
57 57
 	options.InsecureRegistries = opts.NewListOpts(ValidateIndexName)
58 58
 	cmd.Var(&options.InsecureRegistries, []string{"-insecure-registry"}, usageFn("Enable insecure registry communication"))
59
-	cmd.BoolVar(&V2Only, []string{"-disable-legacy-registry"}, false, "Do not contact legacy registries")
59
+	cmd.BoolVar(&V2Only, []string{"-disable-legacy-registry"}, false, usageFn("Do not contact legacy registries"))
60 60
 }
61 61
 
62 62
 // NewServiceConfig returns a new instance of ServiceConfig