From 6fe5da3f51ad38b4ba65147419dc97ec35bbccbf Mon Sep 17 00:00:00 2001 From: aNNiMON Date: Fri, 2 Aug 2024 22:23:11 +0300 Subject: [PATCH] Use -k for kill process --- src/main.rs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/main.rs b/src/main.rs index 92d90cd..9048dfe 100644 --- a/src/main.rs +++ b/src/main.rs @@ -111,13 +111,13 @@ fn main() -> ExitCode { } Mode::Help => { let lines = [ - "pkill => all unique processed, excl. system\n", - "pkill => filtered processes by name or it's part\n", - "pkill -a/--all => all processes, incl. system\n", - "pkill -t/--tree => all processes as tree\n", - "pkill -p/--pid => PID of the first occurence\n", - "pkill -k1/--kill / => terminate process by its PID or name\n", - "pkill -h/--help => print help\n", + "pkill => all unique processed, excl. system\n", + "pkill => filtered processes by name or it's part\n", + "pkill -a/--all => all processes, incl. system\n", + "pkill -t/--tree => all processes as tree\n", + "pkill -p/--pid => PID of the first occurence\n", + "pkill -k/--kill / => terminate process by its PID or name\n", + "pkill -h/--help => print help\n", ]; println!("{}", lines.concat()); ExitCode::SUCCESS @@ -140,7 +140,7 @@ fn parse_mode() -> Mode { continue; } } - "-k1" | "--kill" => { + "-k" | "--kill" => { if let Some(name) = iter.next() { mode = match name.parse() { Ok(pid) => Mode::TerminateByPid(pid),