main: Populate "--cpus" with appropriate syntax definition

This needed to be updated to include specifying the boot and maxmium
vCPUs as well as the newly added topology for those vCPUs.

Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
Rob Bradford 2020-06-16 11:03:08 +01:00 committed by Sebastien Boeuf
parent 4a0439a993
commit 284891b5df

View File

@ -90,7 +90,10 @@ fn create_app<'a, 'b>(
.arg(
Arg::with_name("cpus")
.long("cpus")
.help("Number of virtual CPUs")
.help(
"boot=<boot_vcpus>,max=<max_vcpus>,\
topology=<threads_per_core>:<cores_per_die>:<dies_per_package>:<packages>",
)
.default_value(&default_vcpus)
.group("vm-config"),
)