summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cmd/podman/main.go8
-rw-r--r--docs/podman-rm.1.md2
2 files changed, 8 insertions, 2 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()...)
diff --git a/docs/podman-rm.1.md b/docs/podman-rm.1.md
index dc1729188..c8288f6e8 100644
--- a/docs/podman-rm.1.md
+++ b/docs/podman-rm.1.md
@@ -32,7 +32,7 @@ The latest option is not supported on the remote client.
**--volumes, -v**
-Remove the volumes associated with the container. (Not yet implemented)
+Remove the volumes associated with the container.
## EXAMPLE
Remove a container by its name *mywebserver*