From 3e70821c43be7a68721f36719e97567ee0b04574 Mon Sep 17 00:00:00 2001 From: Daniel Hofstetter Date: Wed, 29 Jan 2025 16:40:37 +0100 Subject: [PATCH 1/2] lscpu: fix code formatting --- src/uu/lscpu/src/lscpu.rs | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/src/uu/lscpu/src/lscpu.rs b/src/uu/lscpu/src/lscpu.rs index b0fc034..a63a807 100644 --- a/src/uu/lscpu/src/lscpu.rs +++ b/src/uu/lscpu/src/lscpu.rs @@ -56,7 +56,17 @@ pub fn uu_app() -> Command { .version(crate_version!()) .about(ABOUT) .override_usage(format_usage(USAGE)) - .infer_long_args(true).arg(Arg::new(options::HEX).short('x').long("hex").action(ArgAction::SetTrue).help("Use hexadecimal masks for CPU sets (for example 'ff'). The default is to print the - sets in list format (for example 0,1). Note that before version 2.30 the mask has been - printed with 0x prefix.").required(false)) + .infer_long_args(true) + .arg( + Arg::new(options::HEX) + .short('x') + .long("hex") + .action(ArgAction::SetTrue) + .help( + "Use hexadecimal masks for CPU sets (for example 'ff'). \ + The default is to print the sets in list format (for example 0,1). \ + Note that before version 2.30 the mask has been printed with 0x prefix.", + ) + .required(false), + ) } From 3fde4a5df9c827685914da36356a11acdbab12f3 Mon Sep 17 00:00:00 2001 From: Daniel Hofstetter Date: Wed, 29 Jan 2025 16:44:33 +0100 Subject: [PATCH 2/2] lscpu: remove irrelevant info from help text --- src/uu/lscpu/src/lscpu.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/uu/lscpu/src/lscpu.rs b/src/uu/lscpu/src/lscpu.rs index a63a807..e800134 100644 --- a/src/uu/lscpu/src/lscpu.rs +++ b/src/uu/lscpu/src/lscpu.rs @@ -64,8 +64,7 @@ pub fn uu_app() -> Command { .action(ArgAction::SetTrue) .help( "Use hexadecimal masks for CPU sets (for example 'ff'). \ - The default is to print the sets in list format (for example 0,1). \ - Note that before version 2.30 the mask has been printed with 0x prefix.", + The default is to print the sets in list format (for example 0,1).", ) .required(false), )