main: Move logging arguments to their own group

Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
Rob Bradford 2020-01-22 15:00:39 +00:00
parent 8aabb9012d
commit 611d13ed1b

View File

@ -84,6 +84,7 @@ fn create_app<'a, 'b>(
.about("Launch a cloud-hypervisor VMM.") .about("Launch a cloud-hypervisor VMM.")
.group(ArgGroup::with_name("vm-config").multiple(true)) .group(ArgGroup::with_name("vm-config").multiple(true))
.group(ArgGroup::with_name("vmm-config").multiple(true)) .group(ArgGroup::with_name("vmm-config").multiple(true))
.group(ArgGroup::with_name("logging").multiple(true))
.arg( .arg(
Arg::with_name("cpus") Arg::with_name("cpus")
.long("cpus") .long("cpus")
@ -244,7 +245,7 @@ fn create_app<'a, 'b>(
.short("v") .short("v")
.multiple(true) .multiple(true)
.help("Sets the level of debugging output") .help("Sets the level of debugging output")
.group("vmm-config"), .group("logging"),
) )
.arg( .arg(
Arg::with_name("log-file") Arg::with_name("log-file")
@ -252,7 +253,7 @@ fn create_app<'a, 'b>(
.help("Log file. Standard error is used if not specified") .help("Log file. Standard error is used if not specified")
.takes_value(true) .takes_value(true)
.min_values(1) .min_values(1)
.group("vmm-config"), .group("logging"),
) )
.arg( .arg(
Arg::with_name("api-socket") Arg::with_name("api-socket")