mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:37:35 +00:00
ArgsParser: Remove prefix from constructor
It makes sense to keep this consistent between applications, and the purpose of the string is not immediately obvious from an API perspective. If we need to make it configurable later, that can come from a setter.
This commit is contained in:
parent
729507f2bd
commit
c478503581
3 changed files with 4 additions and 4 deletions
|
@ -34,7 +34,7 @@ static int pid_of(const String& process_name, bool single_shot, bool omit_pid, p
|
|||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
AK::ArgsParser args_parser("pidof", "-");
|
||||
AK::ArgsParser args_parser("pidof");
|
||||
|
||||
args_parser.add_arg("s", "Single shot - this instructs the program to only return one pid");
|
||||
args_parser.add_arg("o", "pid", "Tells pidof to omit processes with that pid. The special pid %PPID can be used to name the parent process of the pidof program.");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue