summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Thömmes <markusthoemmes@me.com>2021-10-13 11:46:46 +0200
committerMarkus Thömmes <markusthoemmes@me.com>2021-10-13 11:48:45 +0200
commitcc875fd26848e74e4a70e9929c0e7e855a758970 (patch)
tree7c1e731a25c94c4d657844a42457608a3d95279a
parentea868933e8c014ac52192f397f5dc1c3e8ee375a (diff)
downloadpodman-cc875fd26848e74e4a70e9929c0e7e855a758970.tar.gz
podman-cc875fd26848e74e4a70e9929c0e7e855a758970.tar.bz2
podman-cc875fd26848e74e4a70e9929c0e7e855a758970.zip
Display help text on empty subcommand by default
Signed-off-by: Markus Thömmes <markusthoemmes@me.com>
-rw-r--r--cmd/podman/validate/args.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/podman/validate/args.go b/cmd/podman/validate/args.go
index fc07a6acc..dde45cc29 100644
--- a/cmd/podman/validate/args.go
+++ b/cmd/podman/validate/args.go
@@ -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