summaryrefslogtreecommitdiff
path: root/cmd/podman/main.go
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2019-03-30 05:53:36 -0400
committerDaniel J Walsh <dwalsh@redhat.com>2019-03-30 05:54:53 -0400
commit33da2d489076038d0df0e881ac5f4306be2f4496 (patch)
treef367c5bec5cea4db1ed0038c782ed69f595d84b8 /cmd/podman/main.go
parent7b7397481960c85379d8eb1ed21e76da2ce8a4fc (diff)
downloadpodman-33da2d489076038d0df0e881ac5f4306be2f4496.tar.gz
podman-33da2d489076038d0df0e881ac5f4306be2f4496.tar.bz2
podman-33da2d489076038d0df0e881ac5f4306be2f4496.zip
Capitalize global options help information
--trace, --help and --version were not capatilized like the rest of the global options. This patch fixes this problem. Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'cmd/podman/main.go')
-rw-r--r--cmd/podman/main.go8
1 files changed, 7 insertions, 1 deletions
diff --git a/cmd/podman/main.go b/cmd/podman/main.go
index dd8b61408..1ea7f74bf 100644
--- a/cmd/podman/main.go
+++ b/cmd/podman/main.go
@@ -118,6 +118,9 @@ func init() {
rootCmd.PersistentFlags().StringVar(&MainGlobalOpts.CniConfigDir, "cni-config-dir", "", "Path of the configuration directory for CNI networks")
rootCmd.PersistentFlags().StringVar(&MainGlobalOpts.DefaultMountsFile, "default-mounts-file", "", "Path to default mounts file")
rootCmd.PersistentFlags().MarkHidden("defaults-mount-file")
+ // Override default --help information of `--help` global flag
+ var dummyHelp bool
+ rootCmd.PersistentFlags().BoolVar(&dummyHelp, "help", false, "Help for podman")
rootCmd.PersistentFlags().StringSliceVar(&MainGlobalOpts.HooksDir, "hooks-dir", []string{}, "Set the OCI hooks directory path (may be set multiple times)")
rootCmd.PersistentFlags().StringVar(&MainGlobalOpts.LogLevel, "log-level", "error", "Log messages above specified level: debug, info, warn, error, fatal or panic")
rootCmd.PersistentFlags().IntVar(&MainGlobalOpts.MaxWorks, "max-workers", 0, "The maximum number of workers for parallel operations")
@@ -132,7 +135,10 @@ func init() {
rootCmd.PersistentFlags().BoolVar(&MainGlobalOpts.Syslog, "syslog", false, "Output logging information to syslog as well as the console")
rootCmd.PersistentFlags().StringVar(&MainGlobalOpts.TmpDir, "tmpdir", "", "Path to the tmp directory")
- rootCmd.PersistentFlags().BoolVar(&MainGlobalOpts.Trace, "trace", false, "enable opentracing output")
+ rootCmd.PersistentFlags().BoolVar(&MainGlobalOpts.Trace, "trace", false, "Enable opentracing output")
+ // Override default --help information of `--version` global flag
+ var dummyVersion bool
+ rootCmd.PersistentFlags().BoolVar(&dummyVersion, "version", false, "Version for podman")
rootCmd.AddCommand(mainCommands...)
rootCmd.AddCommand(getMainCommands()...)