SHL-80 Disable built in commands

Chain constructor to avoid a breaking API change
This commit is contained in:
mpollack
2014-04-02 12:02:38 -04:00
parent 6de9c8b1ae
commit ac5618df2e

View File

@@ -34,6 +34,18 @@ public class CommandLine {
* @param historySize the size of this history buffer
* @param shellCommandsToExecute semi-colon delimited list of commands for the shell to execute
*/
public CommandLine(String[] args, int historySize, String[] shellCommandsToExecute) {
this(args,historySize,shellCommandsToExecute, false);
}
/**
* Construct a new CommandLine
* @param args an array of strings from main(String[] args)
* @param historySize the size of this history buffer
* @param shellCommandsToExecute semi-colon delimited list of commands for the shell to execute
* @param disableInteralCommands if true, do not load the built-in shell commands
*/
public CommandLine(String[] args, int historySize, String[] shellCommandsToExecute, boolean disableInteralCommands) {
this.args = args;
this.historySize = historySize;