mirror of
https://github.com/containers/podman.git
synced 2025-12-12 01:38:04 +08:00
fix "podman -h" help output
`podman -h` currently returns an error:
`Error: pflag: help requested`
This bug was introduced in 44d037898e, the problem is that we wrap the
error and cobra lib checks with `==` for this one and not errors.Is().
I have a PR upstream to fix this but for now this also works.
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
@@ -199,7 +199,7 @@ function check_help() {
|
||||
check_help
|
||||
|
||||
# Test for regression of #7273 (spurious "--remote" help on output)
|
||||
for helpopt in help --help; do
|
||||
for helpopt in help --help -h; do
|
||||
run_podman $helpopt
|
||||
is "${lines[0]}" "Manage pods, containers and images" \
|
||||
"podman $helpopt: first line of output"
|
||||
|
||||
Reference in New Issue
Block a user