mirror of
https://github.com/containers/podman.git
synced 2025-12-08 14:48:48 +08:00
Don't show global flags except for podman command
Subcommands should not be showing the global flags. This causes the important information to scroll off the screen. Also fixed a typo on runCommmand (Too many 'm's) Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
@@ -58,7 +58,7 @@ var cmdsNotRequiringRootless = map[*cobra.Command]bool{
|
||||
_killCommand: true,
|
||||
_pauseCommand: true,
|
||||
_restartCommand: true,
|
||||
_runCommmand: true,
|
||||
_runCommand: true,
|
||||
_unpauseCommand: true,
|
||||
_searchCommand: true,
|
||||
_statsCommand: true,
|
||||
@@ -205,7 +205,7 @@ func main() {
|
||||
exitCode = status.ExitStatus()
|
||||
}
|
||||
}
|
||||
fmt.Fprintln(os.Stderr, err.Error())
|
||||
fmt.Fprintln(os.Stderr, "Error:", err.Error())
|
||||
}
|
||||
} else {
|
||||
// The exitCode modified from 125, indicates an application
|
||||
|
||||
Reference in New Issue
Block a user