From 47ec85ffef1d31a4cb1974b0a4952d0872ce59d2 Mon Sep 17 00:00:00 2001 From: outfoxxed Date: Tue, 10 Sep 2024 04:55:44 -0700 Subject: [PATCH] core/command: make log --file positional Also frees up -f for --follow. --- src/core/main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core/main.cpp b/src/core/main.cpp index e1a6885b..eb21fb03 100644 --- a/src/core/main.cpp +++ b/src/core/main.cpp @@ -243,17 +243,17 @@ int runCommand(int argc, char** argv, QCoreApplication* coreApplication) { { auto* sub = cli.add_subcommand("log", "Read quickshell logs.\n") - ->description("If --file is specified, the given file will be read.\n" + ->description("If file is specified, the given file will be read.\n" "If not, the log of the first launched instance matching" "the instance selection flags will be read."); - auto* file = sub->add_option("--file", state.log.file, "Log file to read."); + auto* file = sub->add_option("file", state.log.file, "Log file to read."); sub->add_option("-t,--tail", state.log.tail) ->description("Maximum number of lines to print, starting from the bottom.") ->check(CLI::Range(1, std::numeric_limits::max(), "INT > 0")); - sub->add_flag("--follow", state.log.follow) + sub->add_flag("-f,--follow", state.log.follow) ->description("Keep reading the log until the logging process terminates."); sub->add_option("-r,--rules", state.log.readoutRules, "Log file to read.")