]> git.ipfire.org Git - thirdparty/snort3.git/commitdiff
help: enclose --help-config string defaults in single quotes
authorruss <rucombs@cisco.com>
Tue, 19 Jul 2022 17:41:42 +0000 (13:41 -0400)
committerRuss Combs (rucombs) <rucombs@cisco.com>
Sat, 13 Aug 2022 18:39:07 +0000 (18:39 +0000)
src/managers/module_manager.cc

index f3f0d95a56a10476e16ecca3765e3b971d8c8fe5..02fa5c99f522d7a5518997d47593af3e94640633 100644 (file)
@@ -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;