Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug in cobra] podman invalid-command: outputs help msg to stderr, exits 0 #2530

Closed
edsantiago opened this issue Mar 4, 2019 · 1 comment
Labels
locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments.

Comments

@edsantiago
Copy link
Collaborator

$ podman no-such-command
manage pods and images

Usage:
  podman [flags]
  podman [command]
....
$ echo $?
0

Expected:

podman: no-such-command: command not found
[Exit 1]

This appears to be a known bug in cobra. I cannot find a workaround, but of course there may be one I haven't thought of.

There is a pr against cobra but it has sat idle, without comment, for a year.

@rhatdan
Copy link
Member

rhatdan commented Apr 13, 2019

This has been fixed.

@rhatdan rhatdan closed this as completed Apr 13, 2019
@github-actions github-actions bot added the locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. label Sep 24, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 24, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments.
Projects
None yet
Development

No branches or pull requests

2 participants