"FIELDS_OPT",
"FILESTORE_DIR_OPT",
"FILESTORE_DRIVER_OPT",
+ "HVLIST_OPT",
"HVOPTS_OPT",
"HYPERVISOR_OPT",
"IALLOCATOR_OPT",
" format hypervisor:option=value,option=value,...",
default=None, type="identkeyval")
+HVLIST_OPT = cli_option("-H", "--hypervisor-parameters", dest="hvparams",
+ help="Hypervisor and hypervisor options, in the"
+ " format hypervisor:option=value,option=value,...",
+ default=[], action="append", type="identkeyval")
+
def _ParseArgs(argv, commands, aliases):
"""Parser for the command line arguments.
help="Comma-separated list of hypervisors",
type="string",
default=constants.DEFAULT_ENABLED_HYPERVISOR),
- cli_option("-H", "--hypervisor-parameters", dest="hvparams",
- help="Hypervisor and hypervisor options, in the format"
- " hypervisor:option=value,option=value,...",
- default=[],
- action="append",
- type="identkeyval"),
+ HVLIST_OPT,
BACKEND_OPT,
cli_option("-N", "--nic-parameters", dest="nicparams",
type="keyval", default={},
cli_option("--enabled-hypervisors", dest="enabled_hypervisors",
help="Comma-separated list of hypervisors",
type="string", default=None),
- cli_option("-H", "--hypervisor-parameters", dest="hvparams",
- help="Hypervisor and hypervisor options, in the"
- " format"
- " hypervisor:option=value,option=value,...",
- default=[],
- action="append",
- type="identkeyval"),
+ HVLIST_OPT,
BACKEND_OPT,
cli_option("-N", "--nic-parameters", dest="nicparams",
type="keyval", default={},