Add usage help for windows

merge-requests/4/head
Phil Taylor 2021-05-20 20:01:30 +01:00
rodzic b59da5ebb8
commit d31f9fa4c1
1 zmienionych plików z 9 dodań i 0 usunięć

Wyświetl plik

@ -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;
}