lscpu: make --help & --version work
This commit is contained in:
parent
c9ee7d6447
commit
2ddfed1d76
@ -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();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user