From c341efc11a4724f3c083e06d97f0c24f3a283cfd Mon Sep 17 00:00:00 2001 From: Roeland Jansen Date: Mon, 8 Feb 2021 10:20:06 +0100 Subject: [PATCH] adding missing dash to the short form of --logfile --- main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.cpp b/main.cpp index 62618f4..3ec8994 100644 --- a/main.cpp +++ b/main.cpp @@ -58,7 +58,7 @@ int main(int argc, char *argv[]) c += 1; } } - else if ((currentArg == "l") || (currentArg == "--logfile")) + else if ((currentArg == "-l") || (currentArg == "--logfile")) { if (argc > c) { @@ -126,4 +126,4 @@ void messageHandler(QtMsgType type, const QMessageLogContext& context, const QSt // Write to the output category of the message and the message itself out << context.category << ": " << msg << "\n"; out.flush(); // Clear the buffered data -} \ No newline at end of file +}