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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue