other: change non-normalized shortcut (#912)

This commit is contained in:
Clement Tsang 2022-11-22 05:12:35 -05:00 committed by GitHub
parent a0eebf3acb
commit 27fc7a7768
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -85,6 +85,7 @@ pub fn get_matches() -> clap::ArgMatches {
} }
// TODO: Refactor this a bit, it's quite messy atm // TODO: Refactor this a bit, it's quite messy atm
// TODO: [DEBUG] Add a proper debugging solution.
pub fn build_app() -> Command<'static> { pub fn build_app() -> Command<'static> {
// Temps // Temps
let kelvin = Arg::new("kelvin") let kelvin = Arg::new("kelvin")
@ -136,15 +137,13 @@ pub fn build_app() -> Command<'static> {
.long_help("Sets process CPU% usage to be based on the current system CPU% usage rather than total CPU usage."); .long_help("Sets process CPU% usage to be based on the current system CPU% usage rather than total CPU usage.");
let unnormalized_cpu = Arg::new("unnormalized_cpu") let unnormalized_cpu = Arg::new("unnormalized_cpu")
.short('p') .short('n')
.long("unnormalized_cpu") .long("unnormalized_cpu")
.help("Show process CPU% without normalizing over the number of cores.") .help("Show process CPU% without normalizing over the number of cores.")
.long_help( .long_help(
"Shows process CPU usage without averaging over the number of CPU cores in the system.", "Shows process CPU usage without averaging over the number of CPU cores in the system.",
); );
// TODO: [DEBUG] Add a proper debugging solution.
let disable_click = Arg::new("disable_click") let disable_click = Arg::new("disable_click")
.long("disable_click") .long("disable_click")
.help("Disables mouse clicks.") .help("Disables mouse clicks.")