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:
commit
2727780ef1
|
@ -90,7 +90,7 @@ version (Windows)
|
||||||
*/
|
*/
|
||||||
int runApplication(string[]* args_out = null)
|
int runApplication(string[]* args_out = null)
|
||||||
@safe {
|
@safe {
|
||||||
try if (!() @trusted { return finalizeCommandLineOptions(); } () ) return 0;
|
try if (!() @trusted { return finalizeCommandLineOptions(args_out); } () ) return 0;
|
||||||
catch (Exception e) {
|
catch (Exception e) {
|
||||||
logDiagnostic("Error processing command line: %s", e.msg);
|
logDiagnostic("Error processing command line: %s", e.msg);
|
||||||
return 1;
|
return 1;
|
||||||
|
|
Loading…
Reference in a new issue