Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

* add option to show YaCy version, usage: java -cp lib/yacycore.jar net.yacy.yacy -version

f1orib392ca502448
diff --git a/source/net/yacy/yacy.java b/source/net/yacy/yacy.java
index b178cc59b..de8f629ed 100644
--- a/source/net/yacy/yacy.java
+++ b/source/net/yacy/yacy.java
@@ -985,6 +985,9 @@ public final class yacy {
// aut-update yacy
if (args.length == 2) applicationRoot= new File(args[1]);
update(applicationRoot);
+ } else if ((args.length >= 1) && (args[0].toLowerCase().equals("-version"))) {
+ // show yacy version
+ System.out.println(copyright);
} else if ((args.length >= 1) && (args[0].toLowerCase().equals("-minimizeurldb"))) {
// migrate words from DATA/PLASMADB/WORDS path to assortment cache, if possible
// attention: this may run long and should not be interrupted!