virsh: Reorder some options

According to comments in parsing functions, optional options should be
specified *after* required ones.  It makes sense and help output looks
cleaner.  The only exceptions are options with type == VSH_OT_ARGV.

Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
This commit is contained in:
Martin Kletzander
2014-11-13 15:44:23 +01:00
parent cdbb21bc59
commit 11d9dd1ad8
3 changed files with 46 additions and 46 deletions
+4 -4
View File
@@ -190,15 +190,15 @@ static const vshCmdOptDef opts_pool_X_as[] = {
.flags = VSH_OFLAG_REQ,
.help = N_("name of the pool")
},
{.name = "print-xml",
.type = VSH_OT_BOOL,
.help = N_("print XML document, but don't define/create")
},
{.name = "type",
.type = VSH_OT_DATA,
.flags = VSH_OFLAG_REQ,
.help = N_("type of the pool")
},
{.name = "print-xml",
.type = VSH_OT_BOOL,
.help = N_("print XML document, but don't define/create")
},
{.name = "source-host",
.type = VSH_OT_DATA,
.help = N_("source-host for underlying storage")