From 2ddfed1d76603548135e1feb7587ce20e03ab82c Mon Sep 17 00:00:00 2001 From: Daniel Hofstetter Date: Mon, 13 May 2024 09:33:25 +0200 Subject: [PATCH] lscpu: make --help & --version work --- src/uu/lscpu/src/lscpu.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/uu/lscpu/src/lscpu.rs b/src/uu/lscpu/src/lscpu.rs index 2925921..2faacf9 100644 --- a/src/uu/lscpu/src/lscpu.rs +++ b/src/uu/lscpu/src/lscpu.rs @@ -13,7 +13,8 @@ const ABOUT: &str = help_about!("lscpu.md"); const USAGE: &str = help_usage!("lscpu.md"); #[uucore::main] -pub fn uumain(_args: impl uucore::Args) -> UResult<()> { +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 _cpu = system.global_cpu_info();