diff options
author | Paul Holzinger <pholzing@redhat.com> | 2022-03-31 15:54:32 +0200 |
---|---|---|
committer | Paul Holzinger <pholzing@redhat.com> | 2022-03-31 16:20:18 +0200 |
commit | e5745139a71bd5b894d5fb6a80c04c39fd71540a (patch) | |
tree | 35c4d9910fc9bf56e9a4ddf493d1fb71022e72aa /test/e2e/runlabel_test.go | |
parent | 4ba71f955a944790edda6e007e6d074009d437a7 (diff) | |
download | podman-e5745139a71bd5b894d5fb6a80c04c39fd71540a.tar.gz podman-e5745139a71bd5b894d5fb6a80c04c39fd71540a.tar.bz2 podman-e5745139a71bd5b894d5fb6a80c04c39fd71540a.zip |
cli commands: better error for unsupported commands
When you run podman-remote unsahre for example you currently get:
Error: unrecognized command `podman-remote unshare`
This is because we do not add the command to the cobra tree when we run
in remote mode. However this is a bad user experience since it is not
clear that the command is only supported for local podman. Users are
left wondering why this does not work and could think the documentation
is wrong.
To fix it we add a clear error message:
Error: cannot use command "podman-remote unshare" with the remote podman client
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
Diffstat (limited to 'test/e2e/runlabel_test.go')
0 files changed, 0 insertions, 0 deletions