summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-10-20 19:14:08 +0000
committerGitHub <noreply@github.com>2021-10-20 19:14:08 +0000
commit4268a4afee4c1d030c1f901398e6a9b3f282eae3 (patch)
tree9b94171cc3807e028d218a793b73aded58a7badb /cmd
parenteba281c3e0e69533427d3eb5c66c60b5ca038c1b (diff)
parent70a5d8cd1d8e44d755be316730046b73a4a6e2eb (diff)
downloadpodman-4268a4afee4c1d030c1f901398e6a9b3f282eae3.tar.gz
podman-4268a4afee4c1d030c1f901398e6a9b3f282eae3.tar.bz2
podman-4268a4afee4c1d030c1f901398e6a9b3f282eae3.zip
Merge pull request #12049 from edsantiago/test_dash_a_with_l
System tests: confirm that -a and -l clash
Diffstat (limited to 'cmd')
-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")
}