mirror of
https://github.com/containers/podman.git
synced 2025-12-08 06:39:05 +08:00
don't print help message for usage errors
Don't print potentially verbose help messages in case of usage errors, but print only the usage error followed by a pointer to the command's help. This aligns with Docker. ``` $ podman run -h flag needs an argument: -h See 'podman run --help'. ``` Signed-off-by: Valentin Rothberg <vrothberg@suse.com> Closes: #1379 Approved by: rhatdan
This commit is contained in:
committed by
Atomic Bot
parent
82a6b373a5
commit
3839c00ae2
@@ -51,12 +51,13 @@ An image can be pulled using its tag or digest. If a tag is not
|
||||
specified, the image with the 'latest' tag (if it exists) is pulled
|
||||
`
|
||||
pullCommand = cli.Command{
|
||||
Name: "pull",
|
||||
Usage: "Pull an image from a registry",
|
||||
Description: pullDescription,
|
||||
Flags: pullFlags,
|
||||
Action: pullCmd,
|
||||
ArgsUsage: "",
|
||||
Name: "pull",
|
||||
Usage: "Pull an image from a registry",
|
||||
Description: pullDescription,
|
||||
Flags: pullFlags,
|
||||
Action: pullCmd,
|
||||
ArgsUsage: "",
|
||||
OnUsageError: usageErrorHandler,
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user