mirror of
https://github.com/containers/podman.git
synced 2025-06-25 20:26:51 +08:00
Display help text on empty subcommand by default
Signed-off-by: Markus Thömmes <markusthoemmes@me.com>
This commit is contained in:
@ -27,7 +27,7 @@ func SubCommandExists(cmd *cobra.Command, args []string) error {
|
||||
}
|
||||
return errors.Errorf("unrecognized command `%[1]s %[2]s`\n\nDid you mean this?\n\t%[3]s\n\nTry '%[1]s --help' for more information.", cmd.CommandPath(), args[0], strings.Join(suggestions, "\n\t"))
|
||||
}
|
||||
return errors.Errorf("missing command '%[1]s COMMAND'\nTry '%[1]s --help' for more information.", cmd.CommandPath())
|
||||
return cmd.Help()
|
||||
}
|
||||
|
||||
// IDOrLatestArgs used to validate a nameOrId was provided or the "--latest" flag
|
||||
|
Reference in New Issue
Block a user