Skip to content

Commit

Permalink
Merge pull request #48 from cakebaker/lscpu_show_help_and_version
Browse files Browse the repository at this point in the history
lscpu: make `--help` & `--version` work
  • Loading branch information
sylvestre authored Jul 24, 2024
2 parents 4d4f773 + 2ddfed1 commit e0e29e5
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 e0e29e5

Please sign in to comment.