Fix snapshot-create-as syntax in help output

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> ...
This commit is contained in:
Martin Kletzander 2013-03-12 16:34:31 +01:00
parent abfff21006
commit 66f1bbc350

View 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]")
},