summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJelle Raaijmakers <jelle@gmta.nl>2021-06-07 21:56:24 +0200
committerAndreas Kling <kling@serenityos.org>2021-06-08 11:30:58 +0200
commitfb6d1416012c3738fb73cba0d3600ac6ddc54280 (patch)
tree49fe1007e270a5f97315ceab08e37739421b54e6
parent00fc0a6cf045b71821fd40a3e80f0dfb6a644625 (diff)
downloadserenity-fb6d1416012c3738fb73cba0d3600ac6ddc54280.zip
Utilities: Make `strace` stop parsing options on first non-option
-rw-r--r--Userland/Utilities/strace.cpp1
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");