search: remove client-side default for --limit
The daemon (and registry) already have a default limit. This patch removes the default from the client side, to not duplicate setting these defaults. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
@ -38,8 +38,7 @@ func NewSearchCommand(dockerCli command.Cli) *cobra.Command {
|
||||
|
||||
flags.BoolVar(&options.noTrunc, "no-trunc", false, "Don't truncate output")
|
||||
flags.VarP(&options.filter, "filter", "f", "Filter output based on conditions provided")
|
||||
// TODO(thaJeztah) remove default from client as the daemon already has a default
|
||||
flags.IntVar(&options.limit, "limit", 25, "Max number of search results")
|
||||
flags.IntVar(&options.limit, "limit", 0, "Max number of search results")
|
||||
flags.StringVar(&options.format, "format", "", "Pretty-print search using a Go template")
|
||||
|
||||
return cmd
|
||||
|
||||
Reference in New Issue
Block a user