From 3f370033409493ec3b1aa3f0bd118bae4475434f Mon Sep 17 00:00:00 2001 From: Iaroslav Sheptykin Date: Fri, 24 Sep 2021 19:38:38 +0200 Subject: [PATCH] Deprecate --filter. List values for --status Signed-off-by: Iaroslav Sheptykin --- cmd/compose/ps.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/compose/ps.go b/cmd/compose/ps.go index 8e4f76a09..27a0c8120 100644 --- a/cmd/compose/ps.go +++ b/cmd/compose/ps.go @@ -81,8 +81,8 @@ func psCommand(p *projectOptions, backend api.Service) *cobra.Command { } flags := psCmd.Flags() flags.StringVar(&opts.Format, "format", "pretty", "Format the output. Values: [pretty | json]") - flags.StringVar(&opts.Filter, "filter", "", "Filter services by a property") - flags.StringVar(&opts.Status, "status", "", "Filter services by status") + flags.StringVar(&opts.Filter, "filter", "", "Filter services by a property. Deprecated, use --status instead") + flags.StringVar(&opts.Status, "status", "", "Filter services by status. Values: [paused | restarting | removing | running | dead | created | exited]") flags.BoolVarP(&opts.Quiet, "quiet", "q", false, "Only display IDs") flags.BoolVar(&opts.Services, "services", false, "Display services") flags.BoolVarP(&opts.All, "all", "a", false, "Show all stopped containers (including those created by the run command)")