From d31f9fa4c10d0c5aa8adf449ef5f6600c0ed0794 Mon Sep 17 00:00:00 2001 From: Phil Taylor Date: Thu, 20 May 2021 20:01:30 +0100 Subject: [PATCH] Add usage help for windows --- main.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/main.cpp b/main.cpp index d057551..24f50ea 100644 --- a/main.cpp +++ b/main.cpp @@ -90,11 +90,20 @@ int main(int argc, char *argv[]) } else if ((currentArg == "--help")) { +#ifdef Q_OS_WIN + QMessageBox::information(0, "wfview help", helpText); +#else std::cout << helpText.toStdString(); +#endif return 0; } else { + +#ifdef Q_OS_WIN + QMessageBox::information(0, "wfview unrecognised argument", helpText); +#else std::cout << "Unrecognized option: " << currentArg.toStdString(); std::cout << helpText.toStdString(); +#endif return -1; }