--- /cygdrive/d/TEMP/Main.java 2003-10-30 09:57:46.000000000 -0600 +++ src/main/org/apache/tools/ant/Main.java 2003-10-30 10:09:54.000000000 -0600 @@ -423,7 +423,7 @@ projectHelp = true; } else if (arg.equals("-find") || arg.equals("-s")) { // eat up next arg if present, default to build.xml - if (i < args.length - 1) { + if (i < args.length - 1 && !(args[i + 1].equals("-."))) { searchForThis = args[++i]; } else { searchForThis = DEFAULT_BUILD_FILENAME; @@ -456,6 +456,7 @@ throw new BuildException( "Niceness value is out of the range 1-10"); } + } else if (arg.equals("-.")) {//do nothing } else if (arg.startsWith("-")) { // we don't have any more args to recognize! String msg = "Unknown argument: " + arg; @@ -864,6 +865,7 @@ msg.append(" -s the filesystem and use it" + lSep); msg.append(" -nice number A niceness value for the main thread:" + lSep + " 1 (lowest) to 10 (highest); 5 is the default" + lSep); + msg.append(" -. signify end of options" + lSep); System.out.println(msg.toString()); }