summaryrefslogtreecommitdiff
path: root/cmd/podman
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/podman')
-rw-r--r--cmd/podman/logout.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/podman/logout.go b/cmd/podman/logout.go
index cae8ddfb2..25f5aca10 100644
--- a/cmd/podman/logout.go
+++ b/cmd/podman/logout.go
@@ -36,9 +36,9 @@ var (
func logoutCmd(c *cli.Context) error {
args := c.Args()
if len(args) > 1 {
- return errors.Errorf("too many arguments, logout takes only 1 argument")
+ return errors.Errorf("too many arguments, logout takes at most 1 argument")
}
- if len(args) == 0 {
+ if len(args) == 0 && !c.IsSet("all") {
return errors.Errorf("registry must be given")
}
var server string