summaryrefslogtreecommitdiff
path: root/virt-image
diff options
context:
space:
mode:
authorCole Robinson <crobinso@redhat.com>2014-01-20 18:04:23 -0500
committerCole Robinson <crobinso@redhat.com>2014-01-22 10:36:14 -0500
commitd1edce1ca5b5f0f900dfa49fa5edf5d31d02c078 (patch)
tree3cb84923cc24661f22aff026a08ebb544c98bce8 /virt-image
parent41a84bae9fc35dc46eacad7ac95d95b86df2f8ac (diff)
downloadvirt-manager-d1edce1ca5b5f0f900dfa49fa5edf5d31d02c078.tar.gz
cli: Drop dest= from most arguments, it was redundant
Diffstat (limited to 'virt-image')
-rwxr-xr-xvirt-image12
1 files changed, 5 insertions, 7 deletions
diff --git a/virt-image b/virt-image
index 651c02b0..a77eb3ff 100755
--- a/virt-image
+++ b/virt-image
@@ -20,6 +20,7 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
# MA 02110-1301 USA.
+import argparse
import sys
import urlgrabber.progress as progress
@@ -41,13 +42,11 @@ def parse_args():
help=_("virt-image(5) image descriptor"))
geng = parser.add_argument_group(_("General Options"))
- geng.add_argument("-n", "--name", dest="name",
- help=_("Name of the guest instance"))
+ geng.add_argument("-n", "--name", help=_("Name of the guest instance"))
geng.add_argument("-r", "--ram", type=int, dest="memory",
help=_("Memory to allocate for guest instance in "
"megabytes"))
- geng.add_argument("-u", "--uuid", dest="uuid",
- help=_("UUID for the guest."))
+ geng.add_argument("-u", "--uuid", help=argparse.SUPPRESS)
cli.vcpu_cli_options(geng)
cli.add_distro_options(geng)
cli.add_old_feature_options(geng)
@@ -56,10 +55,9 @@ def parse_args():
cli.graphics_option_group(parser)
misc = parser.add_argument_group(_("Miscellaneous Options"))
- misc.add_argument("--boot", type=int, dest="boot",
+ misc.add_argument("--boot", type=int,
help=_("The zero-based index of the boot record to use"))
misc.add_argument("--skip-checksum", action="store_true",
- dest="skipchecksum",
help=_("Skip disk checksum verification process"))
cli.add_misc_options(misc, prompt=True, replace=True, printxml=True,
@@ -132,7 +130,7 @@ def main(conn=None):
meter = progress.TextMeter(fo=sys.stdout)
- if not options.skipchecksum:
+ if not options.skip_checksum:
for disk in image.storage.values():
disk.check_disk_signature(meter=meter)