mirror of
https://github.com/containers/podman.git
synced 2025-12-11 09:18:34 +08:00
We should fail Podman with ExitCode 125 by default
$ ./bin/podman --foo $ echo $? 125 $ ./bin/podman foo Command "foo" not found. See `podman --help`. $ echo $? 1 After this change $ ./bin/podman foo Command "foo" not found. See `podman --help`. $ echo $? 125 Signed-off-by: Daniel J Walsh <dwalsh@redhat.com> Closes: #1398 Approved by: vrothberg
This commit is contained in:
committed by
Atomic Bot
parent
7ffb8a7900
commit
1ee466eee4
@@ -54,7 +54,7 @@ func usageErrorHandler(context *cli.Context, err error, _ bool) error {
|
||||
|
||||
func commandNotFoundHandler(context *cli.Context, command string) {
|
||||
fmt.Fprintf(os.Stderr, "Command %q not found.\nSee `%s --help`.\n", command, context.App.Name)
|
||||
os.Exit(1)
|
||||
os.Exit(exitCode)
|
||||
}
|
||||
|
||||
// validateFlags searches for StringFlags or StringSlice flags that never had
|
||||
|
||||
Reference in New Issue
Block a user