From fb6d1416012c3738fb73cba0d3600ac6ddc54280 Mon Sep 17 00:00:00 2001 From: Jelle Raaijmakers Date: Mon, 7 Jun 2021 21:56:24 +0200 Subject: [PATCH] Utilities: Make `strace` stop parsing options on first non-option --- Userland/Utilities/strace.cpp | 1 + 1 file changed, 1 insertion(+) 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");