Revision: 9885
          
http://languagetool.svn.sourceforge.net/languagetool/?rev=9885&view=rev
Author:   dnaber
Date:     2013-04-06 10:13:00 +0000 (Sat, 06 Apr 2013)
Log Message:
-----------
new command "version" to print LT version and build date

Modified Paths:
--------------
    
trunk/languagetool/languagetool-wikipedia/src/main/java/org/languagetool/dev/wikipedia/Main.java

Modified: 
trunk/languagetool/languagetool-wikipedia/src/main/java/org/languagetool/dev/wikipedia/Main.java
===================================================================
--- 
trunk/languagetool/languagetool-wikipedia/src/main/java/org/languagetool/dev/wikipedia/Main.java
    2013-04-06 10:11:51 UTC (rev 9884)
+++ 
trunk/languagetool/languagetool-wikipedia/src/main/java/org/languagetool/dev/wikipedia/Main.java
    2013-04-06 10:13:00 UTC (rev 9885)
@@ -18,6 +18,7 @@
  */
 package org.languagetool.dev.wikipedia;
 
+import org.languagetool.JLanguageTool;
 import org.languagetool.dev.index.Indexer;
 import org.languagetool.dev.index.Searcher;
 
@@ -45,6 +46,8 @@
         Indexer.main(remainingArgs);
       } else if (command.equals("search")) {
         Searcher.main(remainingArgs);
+      } else if (command.equals("version")) {
+        System.out.println(JLanguageTool.VERSION + " (" + 
JLanguageTool.BUILD_DATE + ")");
       } else {
         System.out.println("Error: unknown command '" + command + "'");
         printUsageAndExit();
@@ -60,6 +63,7 @@
     System.out.println("   wiki-check - check a single Wikipedia page, fetched 
via the Mediawiki API");
     System.out.println("   index      - index a plain text file, putting the 
analysis in a Lucene index for faster rule match search");
     System.out.println("   search     - search for rule matches in an index 
created with 'index' or 'wiki-index'");
+    System.out.println("   version    - print LanguageTool version number and 
build date");
     System.out.println("All commands have different usages. Call them without 
arguments to get help.");
     System.out.println("Example for a call with valid arguments:");
     System.out.println("   java -jar languagetool-wikipedia.jar wiki-check 
http://de.wikipedia.org/wiki/Bielefeld";);

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire 
the most talented Cisco Certified professionals. Visit the 
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html
_______________________________________________
Languagetool-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/languagetool-commits

Reply via email to