Skip to content

Commit

Permalink
lscpu: make --help & --version work
Browse files Browse the repository at this point in the history
  • Loading branch information
cakebaker committed May 13, 2024
1 parent c9ee7d6 commit 2ddfed1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/uu/lscpu/src/lscpu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit 2ddfed1

Please sign in to comment.