diff --git a/src/CLI.cpp b/src/CLI.cpp index f041475cf..a6c97f76e 100644 --- a/src/CLI.cpp +++ b/src/CLI.cpp @@ -448,11 +448,11 @@ bool CLI::canonicalize ( } //////////////////////////////////////////////////////////////////////////////// -const std::string CLI::dump () const +const std::string CLI::dump (const std::string& title /* = "CLI Parser" */) const { std::stringstream out; - out << "\033[1mCLI Parser\033[0m\n" + out << "\033[1m" << title << "\033[0m\n" << " _original_args\n "; Color colorOrigArgs ("gray10 on gray4"); std::vector ::const_iterator i; diff --git a/src/CLI.h b/src/CLI.h index d8639d873..a5743f45d 100644 --- a/src/CLI.h +++ b/src/CLI.h @@ -74,7 +74,7 @@ public: const std::vector getWords (); const std::vector getModifications (); bool canonicalize (std::string&, const std::string&, const std::string&) const; - const std::string dump () const; + const std::string dump (const std::string& title = "CLI Parser") const; private: void addArg (const std::string&);