Merge pull request from cakebaker/lscpu_show_help_and_version

lscpu: make `--help` & `--version` work
This commit is contained in:
Sylvestre Ledru 2024-07-25 00:27:34 +02:00 committed by GitHub
commit e0e29e51c9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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();