Use -k for kill process
This commit is contained in:
parent
b0814b8a83
commit
6fe5da3f51
@ -116,7 +116,7 @@ fn main() -> ExitCode {
|
||||
"pkill -a/--all => all processes, incl. system\n",
|
||||
"pkill -t/--tree => all processes as tree\n",
|
||||
"pkill -p/--pid <name> => PID of the first occurence\n",
|
||||
"pkill -k1/--kill <PID>/<name> => terminate process by its PID or name\n",
|
||||
"pkill -k/--kill <PID>/<name> => terminate process by its PID or name\n",
|
||||
"pkill -h/--help => print help\n",
|
||||
];
|
||||
println!("{}", lines.concat());
|
||||
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user