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 +}