diff options
author | Ed Santiago <santiago@redhat.com> | 2020-09-14 15:19:34 -0600 |
---|---|---|
committer | Ed Santiago <santiago@redhat.com> | 2020-09-14 15:49:28 -0600 |
commit | 2583948f72a05cf38dc9f0c4ec1feef64ab9c9af (patch) | |
tree | afd22aba6b816495c6b764f59e84ea6c1406a192 /cmd/podman/inspect | |
parent | fd7cdb25027bb33c33eacb99f1a02838eca5d684 (diff) | |
download | podman-2583948f72a05cf38dc9f0c4ec1feef64ab9c9af.tar.gz podman-2583948f72a05cf38dc9f0c4ec1feef64ab9c9af.tar.bz2 podman-2583948f72a05cf38dc9f0c4ec1feef64ab9c9af.zip |
Usability: prevent "-l" with arguments
Add new system check confirming that "podman foo -l arg"
throws an error; and fix lots of instances where code
was not doing this check.
I'll probably need to add something similar for --all but
that can wait.
Signed-off-by: Ed Santiago <santiago@redhat.com>
Diffstat (limited to 'cmd/podman/inspect')
-rw-r--r-- | cmd/podman/inspect/inspect.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/podman/inspect/inspect.go b/cmd/podman/inspect/inspect.go index 13c6544bb..f29527412 100644 --- a/cmd/podman/inspect/inspect.go +++ b/cmd/podman/inspect/inspect.go @@ -93,7 +93,7 @@ func (i *inspector) inspect(namesOrIDs []string) error { tmpType := i.options.Type if i.options.Latest { if len(namesOrIDs) > 0 { - return errors.New("latest and containers are not allowed") + return errors.New("--latest and containers cannot be used together") } tmpType = ContainerType // -l works with --type=all } |