Revision: 6882
http://languagetool.svn.sourceforge.net/languagetool/?rev=6882&view=rev
Author: dnaber
Date: 2012-05-13 09:37:05 +0000 (Sun, 13 May 2012)
Log Message:
-----------
make usage message much more verbose
Modified Paths:
--------------
trunk/JLanguageTool/src/java/org/languagetool/Main.java
Modified: trunk/JLanguageTool/src/java/org/languagetool/Main.java
===================================================================
--- trunk/JLanguageTool/src/java/org/languagetool/Main.java 2012-05-12
19:33:30 UTC (rev 6881)
+++ trunk/JLanguageTool/src/java/org/languagetool/Main.java 2012-05-13
09:37:05 UTC (rev 6882)
@@ -457,11 +457,25 @@
try {
options = commandLineParser.parseOptions(args);
} catch (IllegalArgumentException e) {
- System.out
- .println("Usage: java org.languagetool.Main "
- + "[-r|--recursive] [-v|--verbose] [-l|--language LANG]
[-m|--mothertongue LANG] [-d|--disable RULES] [-adl|--autoDetect] "
- + "[-e|--enable RULES] [-c|--encoding]
[-u|--list-unknown] [-t|--taggeronly] [-b] [--api] [-a|--apply] "
- + "[-b2|--bitext] <file>");
+ System.out.println("Usage: java -jar LanguageTool.jar [OPTION]... FILE\n"
+ + " FILE plain text file to be
checked\n"
+ + " Available options:\n"
+ + " -r, --recursive work recursively on
directory, not on a single file\n"
+ + " -c, --encoding ENC character set of the input
text, e.g. utf-8 or latin1\n"
+ + " -b assume that a single line
break marks the end of a paragraph\n"
+ + " -l, --language LANG the language code of the
text, e.g. en for English\n"
+ + " -adl, --autoDetect auto-detect the language
of the input text\n"
+ + " -m, --mothertongue LANG the language code of your
first language, used to activate false-friend checking\n"
+ + " -d, --disable RULES a comma-separated list of
rule ids to be disabled (use no spaces between ids)\n"
+ + " -e, --enable RULES a comma-separated list of
rule ids to be enabled (use no spaces between ids)\n"
+ + " -t, --taggeronly don't check, but only
print text analysis (sentences, part-of-speech tags)\n"
+ + " -u, --list-unknown also print a summary of
words from the input that LanguageTool doesn't know\n"
+ + " -b2, --bitext check bilingual texts with
a tab-separated input file,\n"
+ + " see
http://languagetool.wikidot.com/checking-translations-bilingual-texts\n"
+ + " --api print results as XML\n"
+ + " -p, --profile print performance
measurements\n"
+ + " -v, --verbose print text analysis
(sentences, part-of-speech tags) to STDERR\n"
+ + " -a, --apply automatically apply
suggestions if available, printing result to STDOUT");
System.exit(1);
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Languagetool-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/languagetool-cvs