From cb1313779b9fcdf2d20796ab34b17e5dba032b53 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Mon, 6 Jul 2009 00:58:05 -0400 Subject: [PATCH] Bug Fix - Fixed bug that caused '--' arguments to be swallowed during processing for rc. parameters. --- src/Context.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Context.cpp b/src/Context.cpp index e210c9f95..2518a661c 100644 --- a/src/Context.cpp +++ b/src/Context.cpp @@ -378,7 +378,10 @@ void Context::loadCorrectConfigFile () foreach (arg, args) { if (*arg == "--") + { foundTerminator = true; + filtered.push_back (*arg); + } else if (!foundTerminator && arg->substr (0, 3) == "rc.") { @@ -571,7 +574,7 @@ void Context::parse ( } } - // terminated, therefore everything subsequently is a description. + // Command is terminated, therefore everything subsequently is a description. else { debug ("parse post-termination description '" + *arg + "'");