diff options
author | Cole Robinson <crobinso@redhat.com> | 2013-09-28 11:27:26 -0400 |
---|---|---|
committer | Cole Robinson <crobinso@redhat.com> | 2013-09-28 11:27:26 -0400 |
commit | 4c15da439b73c8628693193e094da1e2cb61791e (patch) | |
tree | 106cecb32dc88f138adaf5ed05b00f0d8f6777ed /virt-clone | |
parent | b1fb6c2567ca9b8053b5cedccd2f97ab9f42fbd2 (diff) | |
download | virt-manager-4c15da439b73c8628693193e094da1e2cb61791e.tar.gz |
cli: Combine registering a bunch of common options
Diffstat (limited to 'virt-clone')
-rwxr-xr-x | virt-clone | 22 |
1 files changed, 4 insertions, 18 deletions
@@ -174,27 +174,13 @@ def parse_args(): parser.add_option_group(netg) misc = optparse.OptionGroup(parser, _("Miscellaneous Options")) - misc.add_option("--print-xml", action="store_true", dest="xmlonly", - help=_("Print the generated domain XML rather than define " - "and clone the guest.")) - misc.add_option("--replace", action="store_true", dest="replace", - help=_("Don't check for name collision. Allows replacing " - "an existing guest with the new clone")) - misc.add_option("-d", "--debug", action="store_true", dest="debug", - help=_("Print debugging information")) - misc.add_option("--prompt", action="store_true", dest="prompt", - default=False, - help=_("Request user input for ambiguous situations or " - "required options.")) - misc.add_option("--force", action="store_true", dest="force", - default=False, - help=_("Do not prompt for input. Answers yes where " - "applicable, terminates for all other prompts")) - misc.add_option("-q", "--quiet", action="store_true", dest="quiet", - help=_("Suppress non-error output")) + + # Just used for clone tests misc.add_option("--clone-running", action="store_true", dest="clone_running", default=False, help=optparse.SUPPRESS_HELP) + + cli.add_misc_options(misc, prompt=True, replace=True, printxml=True) parser.add_option_group(misc) (options, parseargs) = parser.parse_args() |