Index: jrst/src/java/org/codelutin/jrst/Parser.java diff -u jrst/src/java/org/codelutin/jrst/Parser.java:1.10 jrst/src/java/org/codelutin/jrst/Parser.java:1.11 --- jrst/src/java/org/codelutin/jrst/Parser.java:1.10 Wed Aug 4 09:00:49 2004 +++ jrst/src/java/org/codelutin/jrst/Parser.java Fri Sep 17 13:35:08 2004 @@ -23,9 +23,9 @@ * * @author Benjamin Poussin * Copyright Code Lutin - * @version $Revision: 1.10 $ + * @version $Revision: 1.11 $ * - * Mise a jour: $Date: 2004/08/04 09:00:49 $ + * Mise a jour: $Date: 2004/09/17 13:35:08 $ * par : $Author: bpoussin $ */ @@ -67,14 +67,14 @@ static public void help() { System.out.println("--[ JRsT 0.0a - www.codelutin.com - 2003,2004 ]--"); System.out.println(""); - System.out.println("usage : jrst [--html|--xdoc|--xml|--rst] [[--nooverwrite] -o outfile] document.rst"); + System.out.println("usage : jrst [--html|--xdoc|--xml|--rst] [[--overwrite (true|false)] -o outfile] document.rst"); System.out.println(""); System.out.println("-h, --help this help"); System.out.println("--html (default)"); System.out.println("--xdoc "); System.out.println("--xml "); System.out.println("--rst generate with the selected format"); - System.out.println("--nooverwrite don't generate file allready uptodate"); + System.out.println("--overwrite don't generate file allready uptodate"); System.out.println("-o file output file (--output)"); System.out.println("-v # verbosity : 0 <= # <= 3"); } @@ -99,8 +99,8 @@ type = TYPE_XML; }else if ( "--rst".equals(args[i]) ) { type = TYPE_RST; - }else if ( "--nooverwrite".equals(args[i]) ) { - overwrite = false; + }else if ( "--overwrite".equals(args[i]) ) { + overwrite = "false".equalsIgnoreCase(args[++i]); }else if ( "-o".equals(args[i]) ) { fileOut = args[++i]; }else if ( "-v".equals(args[i]) ) {