From f3a7c76c4e859001211772c7e370d559491ccffa Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Wed, 19 Dec 2012 18:57:10 +0100 Subject: [PATCH] add a -n option prevent kakrc from being sourced --- src/main.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.cc b/src/main.cc index b213b9fa..eadcef1f 100644 --- a/src/main.cc +++ b/src/main.cc @@ -712,7 +712,7 @@ int main(int argc, char* argv[]) std::vector params; for (size_t i = 1; i < argc; ++i) params.push_back(argv[i]); - ParametersParser parser(params, { { "c", true }, { "e", true } }); + ParametersParser parser(params, { { "c", true }, { "e", true }, { "n", false } }); EventManager event_manager; String init_command; @@ -760,7 +760,7 @@ int main(int argc, char* argv[]) Server server; - try + if (not parser.has_option("n")) try { Context initialisation_context; command_manager.execute("source " + runtime_directory() + "/kakrc",