mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-30 02:17:21 +02:00
CLI
- Made CLI::dump title dynamic.
This commit is contained in:
parent
f80d57ff48
commit
d3d3a6a418
2 changed files with 3 additions and 3 deletions
|
@ -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 <std::string>::const_iterator i;
|
||||
|
|
|
@ -74,7 +74,7 @@ public:
|
|||
const std::vector <std::string> getWords ();
|
||||
const std::vector <std::string> 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&);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue