aboutsummaryrefslogtreecommitdiff
path: root/cmd/podman
diff options
context:
space:
mode:
authorEd Santiago <santiago@redhat.com>2021-10-20 09:11:57 -0600
committerEd Santiago <santiago@redhat.com>2021-10-20 11:09:32 -0600
commit70a5d8cd1d8e44d755be316730046b73a4a6e2eb (patch)
tree9b94171cc3807e028d218a793b73aded58a7badb /cmd/podman
parenteba281c3e0e69533427d3eb5c66c60b5ca038c1b (diff)
downloadpodman-70a5d8cd1d8e44d755be316730046b73a4a6e2eb.tar.gz
podman-70a5d8cd1d8e44d755be316730046b73a4a6e2eb.tar.bz2
podman-70a5d8cd1d8e44d755be316730046b73a4a6e2eb.zip
System tests: confirm that -a and -l clash
...and fix one instance where there was no check Signed-off-by: Ed Santiago <santiago@redhat.com>
Diffstat (limited to 'cmd/podman')
-rw-r--r--cmd/podman/containers/start.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/cmd/podman/containers/start.go b/cmd/podman/containers/start.go
index 1163b9093..8813fc273 100644
--- a/cmd/podman/containers/start.go
+++ b/cmd/podman/containers/start.go
@@ -87,6 +87,9 @@ func validateStart(cmd *cobra.Command, args []string) error {
if len(args) == 0 && !startOptions.Latest && !startOptions.All {
return errors.New("start requires at least one argument")
}
+ if startOptions.All && startOptions.Latest {
+ return errors.Errorf("--all and --latest cannot be used together")
+ }
if len(args) > 0 && startOptions.Latest {
return errors.Errorf("--latest and containers cannot be used together")
}