From ac5618df2e41989f3514a32ae1ab1fbd55aececa Mon Sep 17 00:00:00 2001 From: mpollack Date: Wed, 2 Apr 2014 12:02:38 -0400 Subject: [PATCH] SHL-80 Disable built in commands Chain constructor to avoid a breaking API change --- .../java/org/springframework/shell/CommandLine.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/main/java/org/springframework/shell/CommandLine.java b/src/main/java/org/springframework/shell/CommandLine.java index c4d6466a..d69ee020 100644 --- a/src/main/java/org/springframework/shell/CommandLine.java +++ b/src/main/java/org/springframework/shell/CommandLine.java @@ -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;