summaryrefslogtreecommitdiff
path: root/cmd/podman/images/build.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-06-24 09:27:07 -0400
committerGitHub <noreply@github.com>2020-06-24 09:27:07 -0400
commitc48a5420135ecbff294e1fbce95be0adf9fc2931 (patch)
treeab0c8e41595adfbec664ffc7e9c7cbfdf6e51623 /cmd/podman/images/build.go
parentb74238864fe4a6fe22f3a8a370e9a32ea21ee383 (diff)
parent6864a5547a774d19a7ccb9d50a7799b721fb66ef (diff)
downloadpodman-c48a5420135ecbff294e1fbce95be0adf9fc2931.tar.gz
podman-c48a5420135ecbff294e1fbce95be0adf9fc2931.tar.bz2
podman-c48a5420135ecbff294e1fbce95be0adf9fc2931.zip
Merge pull request #6733 from edsantiago/bats_help_extra_args
BATS tests: new too-many-arguments test
Diffstat (limited to 'cmd/podman/images/build.go')
-rw-r--r--cmd/podman/images/build.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/podman/images/build.go b/cmd/podman/images/build.go
index 23bfcab79..dfde896a1 100644
--- a/cmd/podman/images/build.go
+++ b/cmd/podman/images/build.go
@@ -45,6 +45,7 @@ var (
Long: buildDescription,
TraverseChildren: true,
RunE: build,
+ Args: cobra.MaximumNArgs(1),
Example: `podman build .
podman build --creds=username:password -t imageName -f Containerfile.simple .
podman build --layers --force-rm --tag imageName .`,