From 850f81c44fae0e49e90c017cd62867ef89c9cfed Mon Sep 17 00:00:00 2001 From: Guillaume Tardif Date: Wed, 28 Apr 2021 14:36:17 +0200 Subject: [PATCH] Add rm --all flag for backward compatibility (deprecated - no effect) Signed-off-by: Guillaume Tardif --- cli/cmd/compose/remove.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cli/cmd/compose/remove.go b/cli/cmd/compose/remove.go index eda63a4fd..c949663e9 100644 --- a/cli/cmd/compose/remove.go +++ b/cli/cmd/compose/remove.go @@ -56,6 +56,9 @@ Any data which is not in a volume will be lost.`, f.BoolVarP(&opts.force, "force", "f", false, "Don't ask to confirm removal") f.BoolVarP(&opts.stop, "stop", "s", false, "Stop the containers, if required, before removing") f.BoolVarP(&opts.volumes, "volumes", "v", false, "Remove any anonymous volumes attached to containers") + f.BoolP("all", "a", false, "Deprecated - no effect") + f.MarkHidden("all") //nolint:errcheck + return cmd }