Load arguments
| 47 | |
| 48 | // Load arguments |
| 49 | foreach (const QString &str, args) { |
| 50 | |
| 51 | if (str.startsWith(QLatin1String("--profile="))) { |
| 52 | QString s = str; |
| 53 | s.remove(0, QStringLiteral("--profile=").length()); |
| 54 | profile = s.toStdString(); |
| 55 | args.removeOne(str); |
| 56 | |
| 57 | } else if (str == "-h" || str == "--help") { |
| 58 | printUsage(argv[0]); |
| 59 | return 0; |
| 60 | |
| 61 | } else if (str == "--no-images") { |
| 62 | saveImages = false; |
| 63 | args.removeOne(str); |
| 64 | |
| 65 | } else if (str == "--fft") { |
| 66 | useFFT = true; |
| 67 | args.removeOne(str); |
| 68 | } |
| 69 | } |
| 70 | |
| 71 | if (args.length() < 2) { |
| 72 | printUsage(argv[0]); |
nothing calls this directly
no test coverage detected