From: David ‘Bombe’ Roden Date: Wed, 26 Jan 2011 06:16:12 +0000 (+0100) Subject: Don’t get confused by “--config-file” parameter. X-Git-Tag: 0.10-rc1~77 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=901e6179e5f1ed6cbb624d759a53edd65e32b6c4;p=jSite.git Don’t get confused by “--config-file” parameter. --- diff --git a/src/de/todesbaum/jsite/main/CLI.java b/src/de/todesbaum/jsite/main/CLI.java index 668720b..d0f1a14 100644 --- a/src/de/todesbaum/jsite/main/CLI.java +++ b/src/de/todesbaum/jsite/main/CLI.java @@ -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);