aboutsummaryrefslogtreecommitdiff
path: root/cmd/podman/main_local.go
diff options
context:
space:
mode:
authorMatthew Heon <mheon@redhat.com>2019-06-14 09:45:25 -0400
committerMatthew Heon <mheon@redhat.com>2019-06-14 09:46:19 -0400
commit74691738aa1d467243c63284ef438f5b813a91ab (patch)
tree55f169844cfe9ef1e36d5248dec5ef7fd7afce23 /cmd/podman/main_local.go
parentb2bdbf331e509aba6a0d0d4a51adc46ca4cf3109 (diff)
downloadpodman-74691738aa1d467243c63284ef438f5b813a91ab.tar.gz
podman-74691738aa1d467243c63284ef438f5b813a91ab.tar.bz2
podman-74691738aa1d467243c63284ef438f5b813a91ab.zip
Fix storage-opts type in Cobra
StringSliceVar was distorting options. StringArrayVar seems to not mangle them, so use that instead. Thanks to Giuseppe for finding this one. Signed-off-by: Matthew Heon <mheon@redhat.com>
Diffstat (limited to 'cmd/podman/main_local.go')
-rw-r--r--cmd/podman/main_local.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/podman/main_local.go b/cmd/podman/main_local.go
index b4f21bd0c..132f35ab5 100644
--- a/cmd/podman/main_local.go
+++ b/cmd/podman/main_local.go
@@ -48,7 +48,7 @@ func init() {
rootCmd.PersistentFlags().StringVar(&MainGlobalOpts.Runtime, "runtime", "", "Path to the OCI-compatible binary used to run containers, default is /usr/bin/runc")
// -s is depracated due to conflict with -s on subcommands
rootCmd.PersistentFlags().StringVar(&MainGlobalOpts.StorageDriver, "storage-driver", "", "Select which storage driver is used to manage storage of images and containers (default is overlay)")
- rootCmd.PersistentFlags().StringSliceVar(&MainGlobalOpts.StorageOpts, "storage-opt", []string{}, "Used to pass an option to the storage driver")
+ rootCmd.PersistentFlags().StringArrayVar(&MainGlobalOpts.StorageOpts, "storage-opt", []string{}, "Used to pass an option to the storage driver")
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")