diff options
author | Jelle Raaijmakers <jelle@gmta.nl> | 2021-06-07 21:56:24 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-06-08 11:30:58 +0200 |
commit | fb6d1416012c3738fb73cba0d3600ac6ddc54280 (patch) | |
tree | 49fe1007e270a5f97315ceab08e37739421b54e6 | |
parent | 00fc0a6cf045b71821fd40a3e80f0dfb6a644625 (diff) | |
download | serenity-fb6d1416012c3738fb73cba0d3600ac6ddc54280.zip |
Utilities: Make `strace` stop parsing options on first non-option
-rw-r--r-- | Userland/Utilities/strace.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Userland/Utilities/strace.cpp b/Userland/Utilities/strace.cpp index ee6bf1b752..12f6d32689 100644 --- a/Userland/Utilities/strace.cpp +++ b/Userland/Utilities/strace.cpp @@ -43,6 +43,7 @@ int main(int argc, char** argv) auto trace_file = Core::File::standard_error(); Core::ArgsParser parser; + parser.set_stop_on_first_non_option(true); parser.set_general_help( "Trace all syscalls and their result."); parser.add_option(g_pid, "Trace the given PID", "pid", 'p', "pid"); |