From: russ Date: Tue, 19 Jul 2022 17:41:42 +0000 (-0400) Subject: help: enclose --help-config string defaults in single quotes X-Git-Tag: 3.1.40.0~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2f66d782eb0de5d642412d78f88dbd5178a71163;p=thirdparty%2Fsnort3.git help: enclose --help-config string defaults in single quotes --- diff --git a/src/managers/module_manager.cc b/src/managers/module_manager.cc index f3f0d95a5..02fa5c99f 100644 --- a/src/managers/module_manager.cc +++ b/src/managers/module_manager.cc @@ -224,7 +224,12 @@ static void dump_field_std(const string& key, const Parameter* p) cout << " " << Markup::emphasis(Markup::escape(key)); if ( p->deflt ) - cout << " = " << p->deflt; + { + if ( p->is_quoted() ) + cout << " = '" << p->deflt << "'"; + else + cout << " = " << p->deflt; + } cout << ": " << p->help;