We currently require full argument specification:
virt-admin daemon-timeout --timeout X
Well, the '--timeout' feels a bit redundant. Turn the argument
into a positional so that the following works too:
virt-admin daemon-timeout X
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
::
- daemon-timeout --timeout NUM
+ daemon-timeout [--timeout] NUM
Sets the daemon timeout to the value of '--timeout' argument. Use ``--timeout 0``
to disable auto-shutdown of the daemon.
{.name = "timeout",
.type = VSH_OT_INT,
.required = true,
+ .positional = true,
.help = N_("number of seconds the daemon will run without any active connection"),
},
{.name = NULL}