}
// new ArgParser
- ArgParser argparser = new ArgParser(args);
+ ArgParser argparser;
+ // --argfile=... -- OVERRIDES ALL NON-BOOTSTRAP ARGS
+ if (bootstrapArgs.containsKey(Arg.ARGFILE))
+ {
+ argparser = ArgParser.parseArgFile(bootstrapArgs.get(Arg.ARGFILE));
+ }
+ else
+ {
+ argparser = new ArgParser(args);
+ }
if (!Platform.isJS())
/**
}
}
// Run Commands from cli
- boolean commandsSuccess = Commands.processArgs(argparser, headless);
+ boolean commandsSuccess = Commands.processArgs(argparser, headlessArg);
if (commandsSuccess)
{
Console.info("Successfully completed commands");
// ////////////////////
if (!Platform.isJS() && !headless && file == null
- && Cache.getDefault("SHOW_STARTUP_FILE", true))
+ && Cache.getDefault("SHOW_STARTUP_FILE", true)
+ && !Commands.commandArgsProvided())
+ // don't open the startup file if command line args have been processed
+ // (&& !Commands.commandArgsProvided())
/**
* Java only
*