mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 06:37:44 +00:00
Utilities: Make strace
stop parsing options on first non-option
This commit is contained in:
parent
00fc0a6cf0
commit
fb6d141601
1 changed files with 1 additions and 0 deletions
|
@ -43,6 +43,7 @@ int main(int argc, char** argv)
|
||||||
auto trace_file = Core::File::standard_error();
|
auto trace_file = Core::File::standard_error();
|
||||||
|
|
||||||
Core::ArgsParser parser;
|
Core::ArgsParser parser;
|
||||||
|
parser.set_stop_on_first_non_option(true);
|
||||||
parser.set_general_help(
|
parser.set_general_help(
|
||||||
"Trace all syscalls and their result.");
|
"Trace all syscalls and their result.");
|
||||||
parser.add_option(g_pid, "Trace the given PID", "pid", 'p', "pid");
|
parser.add_option(g_pid, "Trace the given PID", "pid", 'p', "pid");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue