summaryrefslogtreecommitdiff
path: root/cmd/podman
diff options
context:
space:
mode:
authorValentin Rothberg <rothberg@redhat.com>2020-06-23 11:17:42 +0200
committerMatthew Heon <mheon@redhat.com>2020-06-24 14:39:45 -0400
commitcd0b18c24f9835e8bb258b906800f0975fbe9e2f (patch)
tree1acf2ac660a88478a26e57ddfcc2ec8dcdd0702f /cmd/podman
parent8fbfffc082215b03df29cb1eeb2eb22a582a48cd (diff)
downloadpodman-cd0b18c24f9835e8bb258b906800f0975fbe9e2f.tar.gz
podman-cd0b18c24f9835e8bb258b906800f0975fbe9e2f.tar.bz2
podman-cd0b18c24f9835e8bb258b906800f0975fbe9e2f.zip
image load: no args required
Disable the args requirement of `image load`. Instead of requiring a lower bound, we really need an upper one with at most 1 argument. Extend the system tests to prevent future regressions. Fixes: #6718 Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
Diffstat (limited to 'cmd/podman')
-rw-r--r--cmd/podman/images/load.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/podman/images/load.go b/cmd/podman/images/load.go
index a984ad81f..115e9a070 100644
--- a/cmd/podman/images/load.go
+++ b/cmd/podman/images/load.go
@@ -30,7 +30,7 @@ var (
}
imageLoadCommand = &cobra.Command{
- Args: cobra.MinimumNArgs(1),
+ Args: loadCommand.Args,
Use: loadCommand.Use,
Short: loadCommand.Short,
Long: loadCommand.Long,