Return-Path: Delivered-To: apmail-ant-dev-archive@www.apache.org Received: (qmail 9897 invoked from network); 3 Sep 2003 14:22:10 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 3 Sep 2003 14:22:10 -0000 Received: (qmail 9754 invoked by uid 500); 3 Sep 2003 14:19:22 -0000 Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 9555 invoked by uid 500); 3 Sep 2003 14:19:17 -0000 Mailing-List: contact dev-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list dev@ant.apache.org Received: (qmail 9477 invoked by uid 500); 3 Sep 2003 14:19:16 -0000 Received: (qmail 9383 invoked from network); 3 Sep 2003 14:19:15 -0000 Received: from unknown (HELO minotaur.apache.org) (209.237.227.194) by daedalus.apache.org with SMTP; 3 Sep 2003 14:19:15 -0000 Received: (qmail 7423 invoked by uid 1694); 3 Sep 2003 14:19:07 -0000 Date: 3 Sep 2003 14:19:07 -0000 Message-ID: <20030903141907.7422.qmail@minotaur.apache.org> From: jhm@apache.org To: ant-cvs@apache.org Subject: cvs commit: ant/src/main/org/apache/tools/ant Main.java X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N jhm 2003/09/03 07:19:07 Modified: src/main/org/apache/tools/ant Main.java Log: New shortcuts for ant options: -d --> -debug -e --> -emacs -h --> -help -p --> -projecthelp -s --> -find Revision Changes Path 1.93 +12 -12 ant/src/main/org/apache/tools/ant/Main.java Index: Main.java =================================================================== RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/Main.java,v retrieving revision 1.92 retrieving revision 1.93 diff -u -r1.92 -r1.93 --- Main.java 27 Aug 2003 08:45:03 -0000 1.92 +++ Main.java 3 Sep 2003 14:19:07 -0000 1.93 @@ -303,7 +303,7 @@ for (int i = 0; i < args.length; i++) { String arg = args[i]; - if (arg.equals("-help")) { + if (arg.equals("-help") || arg.equals("-h")) { printUsage(); return; } else if (arg.equals("-version")) { @@ -317,7 +317,7 @@ } else if (arg.equals("-verbose") || arg.equals("-v")) { printVersion(); msgOutputLevel = Project.MSG_VERBOSE; - } else if (arg.equals("-debug")) { + } else if (arg.equals("-debug") || arg.equals("-d")) { printVersion(); msgOutputLevel = Project.MSG_DEBUG; } else if (arg.equals("-noinput")) { @@ -407,12 +407,12 @@ + " using the -inputhandler" + " argument"); } - } else if (arg.equals("-emacs")) { + } else if (arg.equals("-emacs") || arg.equals("-e")) { emacsMode = true; - } else if (arg.equals("-projecthelp")) { + } else if (arg.equals("-projecthelp") || arg.equals("-p")) { // set the flag to display the targets and quit projectHelp = true; - } else if (arg.equals("-find")) { + } else if (arg.equals("-find") || arg.equals("-s")) { // eat up next arg if present, default to build.xml if (i < args.length - 1) { searchForThis = args[++i]; @@ -796,15 +796,15 @@ StringBuffer msg = new StringBuffer(); msg.append("ant [options] [target [target2 [target3] ...]]" + lSep); msg.append("Options: " + lSep); - msg.append(" -help print this message" + lSep); - msg.append(" -projecthelp print project help information" + lSep); + msg.append(" -help, -h print this message" + lSep); + msg.append(" -projecthelp, -p print project help information" + lSep); msg.append(" -version print the version information and exit" + lSep); msg.append(" -diagnostics print information that might be helpful to" + lSep); msg.append(" diagnose or report problems." + lSep); msg.append(" -quiet, -q be extra quiet" + lSep); msg.append(" -verbose, -v be extra verbose" + lSep); - msg.append(" -debug print debugging information" + lSep); - msg.append(" -emacs produce logging information without adornments" + lSep); + msg.append(" -debug, -d print debugging information" + lSep); + msg.append(" -emacs, -e produce logging information without adornments" + lSep); msg.append(" -logfile use given file for log" + lSep); msg.append(" -l ''" + lSep); msg.append(" -logger the class which is to perform logging" + lSep); @@ -819,8 +819,8 @@ msg.append(" -propertyfile load all properties from file with -D" + lSep); msg.append(" properties taking precedence" + lSep); msg.append(" -inputhandler the class which will handle input requests" + lSep); - msg.append(" -find search for buildfile towards the root of the" + lSep); - msg.append(" filesystem and use it" + lSep); + msg.append(" -find (s)earch for buildfile towards the root of" + lSep); + msg.append(" -s the filesystem and use it" + lSep); System.out.println(msg.toString()); } @@ -1010,4 +1010,4 @@ } project.log(msg.toString()); } -} +} \ No newline at end of file --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org For additional commands, e-mail: dev-help@ant.apache.org