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:
Bo Chen 2023-10-04 11:33:08 -07:00 committed by Rob Bradford
parent ff651e0e28
commit 1e01b5eabc

View File

@ -676,6 +676,11 @@ fn main() {
if toplevel.version {
println!("{} {}", env!("CARGO_BIN_NAME"), env!("BUILD_VERSION"));
if toplevel.verbosity != 0 {
println!("Enabled features: {:?}", vmm::feature_list());
}
return;
}