- Made CLI::dump title dynamic.
This commit is contained in:
Paul Beckingham 2014-10-31 19:19:30 -04:00
parent f80d57ff48
commit d3d3a6a418
2 changed files with 3 additions and 3 deletions

View file

@ -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; std::stringstream out;
out << "\033[1mCLI Parser\033[0m\n" out << "\033[1m" << title << "\033[0m\n"
<< " _original_args\n "; << " _original_args\n ";
Color colorOrigArgs ("gray10 on gray4"); Color colorOrigArgs ("gray10 on gray4");
std::vector <std::string>::const_iterator i; std::vector <std::string>::const_iterator i;

View file

@ -74,7 +74,7 @@ public:
const std::vector <std::string> getWords (); const std::vector <std::string> getWords ();
const std::vector <std::string> getModifications (); const std::vector <std::string> getModifications ();
bool canonicalize (std::string&, const std::string&, const std::string&) const; 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: private:
void addArg (const std::string&); void addArg (const std::string&);