Don’t get confused by “--config-file” parameter.
authorDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Wed, 26 Jan 2011 06:16:12 +0000 (07:16 +0100)
committerDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Wed, 26 Jan 2011 06:16:12 +0000 (07:16 +0100)
src/de/todesbaum/jsite/main/CLI.java

index 668720b..d0f1a14 100644 (file)
@@ -107,6 +107,10 @@ public class CLI implements InsertListener {
 
                Project currentProject = null;
                for (String argument : args) {
+                       if (argument.startsWith("--config-file=")) {
+                               /* we already parsed this one. */
+                               continue;
+                       }
                        String value = argument.substring(argument.indexOf('=') + 1).trim();
                        if (argument.startsWith("--node=")) {
                                Node newNode = getNode(value);