From 1b2a22bb39780d6bcdecfc3ee5a1f0e275c1a239 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Tue, 25 Sep 2018 01:20:59 -0700 Subject: [PATCH] modules/console: Add conf rehash force option. --- modules/console.cc | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/modules/console.cc b/modules/console.cc index 74d6c13cf..ebe3a8427 100644 --- a/modules/console.cc +++ b/modules/console.cc @@ -743,13 +743,23 @@ console_cmd__conf__get(opt &out, const string_view &line) bool console_cmd__conf__rehash(opt &out, const string_view &line) { + const params param{line, " ", + { + "force" + }}; + using prototype = void (const bool &); static mods::import rehash_conf { "s_conf", "rehash_conf" }; - rehash_conf(false); + const bool force + { + param["force"] == "force" + }; + + rehash_conf(force); out << "Saved runtime conf items" << " from the current state into !conf:" << my_host() << std::endl;