test: add hex flag test for lscpu

This commit is contained in:
Harshit Verma
2025-01-23 06:09:49 +05:30
parent ffe2ba60b0
commit 16817945c4
2 changed files with 6 additions and 1 deletions

View File

@@ -16,7 +16,7 @@ const USAGE: &str = help_usage!("lscpu.md");
pub fn uumain(args: impl uucore::Args) -> UResult<()> {
let _matches: clap::ArgMatches = uu_app().try_get_matches_from(args)?;
let system = System::new_all();
let hex= _matches.get_flag(options::HEX);
let hex = _matches.get_flag(options::HEX);
println!("Architecture: {}", get_architecture());
if hex {