From 901e6179e5f1ed6cbb624d759a53edd65e32b6c4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Wed, 26 Jan 2011 07:16:12 +0100 Subject: [PATCH] =?utf8?q?Don=E2=80=99t=20get=20confused=20by=20=E2=80=9C-?= =?utf8?q?-config-file=E2=80=9D=20parameter.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/de/todesbaum/jsite/main/CLI.java | 4 ++++ 1 file changed, 4 insertions(+) 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); -- 2.7.4