mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-03-09 08:58:27 +03:00
cli: Remove redundant argparse dest= options
This commit is contained in:
parent
3e55e89453
commit
96ac896e1a
@ -104,7 +104,7 @@ def parse_args():
|
||||
geng.add_argument("-n", "--name", dest="new_name",
|
||||
help=_("Name for the new guest"))
|
||||
geng.add_argument("-u", "--uuid", dest="new_uuid", help=argparse.SUPPRESS)
|
||||
geng.add_argument("--reflink", action="store_true", dest="reflink",
|
||||
geng.add_argument("--reflink", action="store_true",
|
||||
help=_("use btrfs COW lightweight copy"))
|
||||
|
||||
stog = parser.add_argument_group(_("Storage Configuration"))
|
||||
|
12
virt-install
12
virt-install
@ -848,14 +848,12 @@ def parse_args():
|
||||
|
||||
|
||||
misc = parser.add_argument_group(_("Miscellaneous Options"))
|
||||
misc.add_argument("--autostart", action="store_true", dest="autostart",
|
||||
default=False,
|
||||
help=_("Have domain autostart on host boot up."))
|
||||
misc.add_argument("--transient", action="store_true", dest="transient",
|
||||
default=False,
|
||||
misc.add_argument("--autostart", action="store_true", default=False,
|
||||
help=_("Have domain autostart on host boot up."))
|
||||
misc.add_argument("--transient", action="store_true", default=False,
|
||||
help=_("Create a transient domain."))
|
||||
misc.add_argument("--wait", type=int, dest="wait",
|
||||
help=_("Minutes to wait for install to complete."))
|
||||
misc.add_argument("--wait", type=int,
|
||||
help=_("Minutes to wait for install to complete."))
|
||||
|
||||
cli.add_misc_options(misc, prompt=True, printxml=True, printstep=True,
|
||||
noreboot=True, dryrun=True, noautoconsole=True)
|
||||
|
Loading…
x
Reference in New Issue
Block a user