From: SVN by r. <sv...@ca...> - 2007-10-29 15:31:11
|
Author: roy Date: 2007-10-29 16:31:08 +0100 (Mon, 29 Oct 2007) New Revision: 193 Modified: src/main/java/nl/improved/sqlclient/SQLShell.java Log: made exit quit the application as well (as per request) Modified: src/main/java/nl/improved/sqlclient/SQLShell.java =================================================================== --- src/main/java/nl/improved/sqlclient/SQLShell.java 2007-10-29 08:15:01 UTC (rev 192) +++ src/main/java/nl/improved/sqlclient/SQLShell.java 2007-10-29 15:31:08 UTC (rev 193) @@ -126,7 +126,7 @@ commands.register("HELP[\\s]*.*", new HelpCommand()); commands.register("HISTORY[\\s]*.*", new HistoryCommand()); commands.register("SPOOL[\\s]*.*", new SpoolCommand()); - commands.register("QUIT[\\s]*", new QuitCommand()); + commands.register("(QUIT|EXIT)[\\s]*", new QuitCommand()); commands.register("@.*", new ExecuteBatchCommand()); MAX_LINE_LENGTH = Toolkit.getScreenWidth()-(2+PROMPT.length()+2+1); // 2 spaces bouds.. prompt + "> " @@ -952,7 +952,7 @@ return "Application terminated."; } public CharSequence getHelp() { - return "Quit the application."; + return "Quit(exit) the application."; } public CharSequence getCommandString() { return "quit"; |