@@ -128,12 +128,12 @@ var generateFlags = []cli.Flag{
128128 cli.StringFlag {Name : "solaris-max-shm-memory" , Usage : "Specifies the maximum amount of shared memory" },
129129 cli.StringFlag {Name : "solaris-milestone" , Usage : "Specifies the SMF FMRI" },
130130 cli.StringFlag {Name : "template" , Usage : "base template to use for creating the configuration" },
131- cli.StringFlag {Name : "vm-hypervisor-parameters" , Usage : "specifies an array of parameters to pass to the hypervisor" },
131+ cli.StringSliceFlag {Name : "vm-hypervisor-parameters" , Usage : "specifies an array of parameters to pass to the hypervisor" },
132132 cli.StringFlag {Name : "vm-hypervisor-path" , Usage : "specifies the path to the hypervisor binary that manages the container virtual machine" },
133133 cli.StringFlag {Name : "vm-image-format" , Usage : "set the format of the container virtual machine root image" },
134134 cli.StringFlag {Name : "vm-image-path" , Usage : "set path to the container virtual machine root image" },
135135 cli.StringFlag {Name : "vm-kernel-initrd" , Usage : "set path to an initial ramdisk to be used by the container virtual machine" },
136- cli.StringFlag {Name : "vm-kernel-parameters" , Usage : "specifies an array of parameters to pass to the kernel" },
136+ cli.StringSliceFlag {Name : "vm-kernel-parameters" , Usage : "specifies an array of parameters to pass to the kernel" },
137137 cli.StringFlag {Name : "vm-kernel-path" , Usage : "set path to the kernel used to boot the container virtual machine" },
138138 cli.StringSliceFlag {Name : "windows-devices" , Usage : "specifies a list of devices to be mapped into the container" },
139139 cli.StringFlag {Name : "windows-hyperv-utilityVMPath" , Usage : "specifies the path to the image used for the utility VM" },
@@ -899,7 +899,7 @@ func setupSpec(g *generate.Generator, context *cli.Context) error {
899899 }
900900
901901 if context .IsSet ("vm-hypervisor-parameters" ) {
902- g .SetVMHypervisorParameters (context .String ("vm-hypervisor-parameters" ))
902+ g .SetVMHypervisorParameters (context .StringSlice ("vm-hypervisor-parameters" ))
903903 }
904904
905905 if context .IsSet ("vm-kernel-path" ) {
@@ -909,7 +909,7 @@ func setupSpec(g *generate.Generator, context *cli.Context) error {
909909 }
910910
911911 if context .IsSet ("vm-kernel-parameters" ) {
912- g .SetVMKernelParameters (context .String ("vm-kernel-parameters" ))
912+ g .SetVMKernelParameters (context .StringSlice ("vm-kernel-parameters" ))
913913 }
914914
915915 if context .IsSet ("vm-kernel-initrd" ) {
0 commit comments