]> granicus.if.org Git - pdns/commitdiff
fixes misleading documentation
authorLadislav <ladislavmacoun@gmail.com>
Tue, 13 Aug 2019 13:59:36 +0000 (15:59 +0200)
committerGitHub <noreply@github.com>
Tue, 13 Aug 2019 13:59:36 +0000 (15:59 +0200)
Fixes misleading documentation for the `setSwitch` function.

pdns/arguments.hh

index 93705958414023edfffbe1a9327dc99decdd061c..d91a95a533e07b853da9c006782f9987ae777502 100644 (file)
@@ -104,7 +104,7 @@ public:
   string &set(const string &); //!< Gives a writable reference and allocates space for it
   string &set(const string &, const string &); //!< Does the same but also allows one to specify a help message
   void setCmd(const string &, const string &); //!< Add a command flag
-  string &setSwitch(const string &, const string &); //!< Add a command flag
+  string &setSwitch(const string &, const string &); //!< Add a switch flag
   string helpstring(string prefix=""); //!< generates the --help
   string configstring(bool current=false); //!< generates the --mkconfig
   bool contains(const string &var, const string &val);