]> xenbits.xensource.com Git - libvirt.git/commitdiff
Fix snapshot-create-as syntax in help output
authorMartin Kletzander <mkletzan@redhat.com>
Tue, 12 Mar 2013 15:34:31 +0000 (16:34 +0100)
committerMartin Kletzander <mkletzan@redhat.com>
Fri, 15 Mar 2013 14:05:44 +0000 (15:05 +0100)
According to the man page, the memspec parameter should have the
'--memspec' option mandatory and this is as close as we can get to
that.  What this change does is explained below.

man virsh:

snapshot-create-as ... [[--live] [--memspec memspec]]

virsh help snapshot-create-as before this patch:

  SYNOPSIS
    snapshot-create-as ... [<memspec>] ...
...
  OPTIONS
    [--memspec] <string> ...

virsh help snapshot-create-as after this patch:

  SYNOPSIS
    snapshot-create-as ... [--memspec <string>] ...
...
  OPTIONS
    --memspec <string> ...

tools/virsh-snapshot.c

index d994fd91b2b9444f7d03465d755d62715046917b..c2db99b52fa2254a2de21b7c055a2cadbff3a1c4 100644 (file)
@@ -397,7 +397,7 @@ static const vshCmdOptDef opts_snapshot_create_as[] = {
      .help = N_("take a live snapshot")
     },
     {.name = "memspec",
-     .type = VSH_OT_DATA,
+     .type = VSH_OT_STRING,
      .flags = VSH_OFLAG_REQ_OPT,
      .help = N_("memory attributes: [file=]name[,snapshot=type]")
     },