Browse code

fix a typo

when i was using:
docker search --automated -s 3 nginx
told me:
Flag --automated has been deprecated, use --filter=automated=true instead
Flag --stars has been deprecated, use --filter=stars=3 instead
and when i use:
docker search --filter=automated=true --filter=stars=3 nginx
told me:
Error response from daemon: Invalid filter 'automated'
and i found out that the correct command should be:
docker search --filter=is-automated=true --filter=stars=3 nginx

Signed-off-by: Pure White <daniel48@126.com>

Pure White authored on 2017/03/16 23:33:24
Showing 1 changed files
... ...
@@ -52,7 +52,7 @@ func NewSearchCommand(dockerCli *command.DockerCli) *cobra.Command {
52 52
 	flags.BoolVar(&opts.automated, "automated", false, "Only show automated builds")
53 53
 	flags.UintVarP(&opts.stars, "stars", "s", 0, "Only displays with at least x stars")
54 54
 
55
-	flags.MarkDeprecated("automated", "use --filter=automated=true instead")
55
+	flags.MarkDeprecated("automated", "use --filter=is-automated=true instead")
56 56
 	flags.MarkDeprecated("stars", "use --filter=stars=3 instead")
57 57
 
58 58
 	return cmd