mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-10-05 21:15:45 +00:00
main: Report enabled features from CLI with "--version -v"
Fixes: #5817 Signed-off-by: Bo Chen <chen.bo@intel.com>
This commit is contained in:
parent
ff651e0e28
commit
1e01b5eabc
@ -676,6 +676,11 @@ fn main() {
|
|||||||
|
|
||||||
if toplevel.version {
|
if toplevel.version {
|
||||||
println!("{} {}", env!("CARGO_BIN_NAME"), env!("BUILD_VERSION"));
|
println!("{} {}", env!("CARGO_BIN_NAME"), env!("BUILD_VERSION"));
|
||||||
|
|
||||||
|
if toplevel.verbosity != 0 {
|
||||||
|
println!("Enabled features: {:?}", vmm::feature_list());
|
||||||
|
}
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user