Check only arguments needing action before GUI is shown. Rest of the arguments are handled in MainWindow::HandleCLIParams()
| 83 | // Check only arguments needing action before GUI is shown. |
| 84 | // Rest of the arguments are handled in MainWindow::HandleCLIParams() |
| 85 | static bool CheckArgs(const QStringList &args) |
| 86 | { |
| 87 | if (args.contains("-h") || args.contains("--help")) { |
| 88 | ShowUsage(); |
| 89 | return false; |
| 90 | } |
| 91 | if (args.contains("-v") || args.contains("--version")) { |
| 92 | ShowVersion(); |
| 93 | return false; |
| 94 | } |
| 95 | return true; |
| 96 | } |
| 97 | |
| 98 | static void ShowUsage() |
| 99 | { |
no test coverage detected