Merge pull request #1606 from gtardif/compose_rm_all

Add rm --all flag for backward compatibility (deprecated - no effect)
This commit is contained in:
Nicolas De loof 2021-04-30 13:26:56 +02:00 committed by GitHub
commit 63057f6d1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -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
}