Merge pull request #134 from joseph-wakeling-frequenz/fix-run-app-args

Fix runApplication handling of unrecognized command-line args
This commit is contained in:
Sönke Ludwig 2019-02-22 22:16:29 +01:00 committed by GitHub
commit 2727780ef1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -90,7 +90,7 @@ version (Windows)
*/
int runApplication(string[]* args_out = null)
@safe {
try if (!() @trusted { return finalizeCommandLineOptions(); } () ) return 0;
try if (!() @trusted { return finalizeCommandLineOptions(args_out); } () ) return 0;
catch (Exception e) {
logDiagnostic("Error processing command line: %s", e.msg);
return 1;