Skip to content

Commit 47ec85f

Browse files
committed
core/command: make log --file positional
Also frees up -f for --follow.
1 parent 01deefe commit 47ec85f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/core/main.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -243,17 +243,17 @@ int runCommand(int argc, char** argv, QCoreApplication* coreApplication) {
243243

244244
{
245245
auto* sub = cli.add_subcommand("log", "Read quickshell logs.\n")
246-
->description("If --file is specified, the given file will be read.\n"
246+
->description("If file is specified, the given file will be read.\n"
247247
"If not, the log of the first launched instance matching"
248248
"the instance selection flags will be read.");
249249

250-
auto* file = sub->add_option("--file", state.log.file, "Log file to read.");
250+
auto* file = sub->add_option("file", state.log.file, "Log file to read.");
251251

252252
sub->add_option("-t,--tail", state.log.tail)
253253
->description("Maximum number of lines to print, starting from the bottom.")
254254
->check(CLI::Range(1, std::numeric_limits<int>::max(), "INT > 0"));
255255

256-
sub->add_flag("--follow", state.log.follow)
256+
sub->add_flag("-f,--follow", state.log.follow)
257257
->description("Keep reading the log until the logging process terminates.");
258258

259259
sub->add_option("-r,--rules", state.log.readoutRules, "Log file to read.")

0 commit comments

Comments
 (0)