From b392ca5024483ea4f7dcd3dec265d467f766d9cd Mon Sep 17 00:00:00 2001 From: f1ori Date: Mon, 20 Sep 2010 10:21:05 +0000 Subject: [PATCH] * add option to show YaCy version, usage: java -cp lib/yacycore.jar net.yacy.yacy -version git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@7174 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- source/net/yacy/yacy.java | 3 +++ 1 file changed, 3 insertions(+) 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!