tclap
1.2.1
|
A class that generates a Zsh completion function as output from the usage() method for the given CmdLine and its Args. More...
#include <ZshCompletionOutput.h>
Public Member Functions | |
ZshCompletionOutput () | |
virtual void | usage (CmdLineInterface &c) |
Prints the usage to stdout. More... | |
virtual void | version (CmdLineInterface &c) |
Prints the version to stdout. More... | |
virtual void | failure (CmdLineInterface &c, ArgException &e) |
Prints (to stderr) an error message, short usage Can be overridden to produce alternative behavior. More... | |
![]() | |
virtual | ~CmdLineOutput () |
Virtual destructor. More... | |
Protected Member Functions | |
void | basename (std::string &s) |
void | quoteSpecialChars (std::string &s) |
std::string | getMutexList (CmdLineInterface &_cmd, Arg *a) |
void | printOption (Arg *it, std::string mutex) |
void | printArg (Arg *it) |
Protected Attributes | |
std::map< std::string, std::string > | common |
char | theDelimiter |
A class that generates a Zsh completion function as output from the usage() method for the given CmdLine and its Args.
Definition at line 61 of file ZshCompletionOutput.h.
TCLAP::ZshCompletionOutput::ZshCompletionOutput | ( | ) |
Definition at line 104 of file ZshCompletionOutput.h.
|
inlineprotected |
Definition at line 173 of file ZshCompletionOutput.h.
|
inlinevirtual |
Prints (to stderr) an error message, short usage Can be overridden to produce alternative behavior.
c | - The CmdLine object the output is generated for. |
e | - The ArgException that caused the failure. |
Implements TCLAP::CmdLineOutput.
Definition at line 147 of file ZshCompletionOutput.h.
|
inlineprotected |
Definition at line 289 of file ZshCompletionOutput.h.
Referenced by version().
|
inlineprotected |
Definition at line 182 of file ZshCompletionOutput.h.
Referenced by version().
|
inlineprotected |
Definition at line 208 of file ZshCompletionOutput.h.
Referenced by version().
|
inlineprotected |
Definition at line 154 of file ZshCompletionOutput.h.
|
inlinevirtual |
Prints the usage to stdout.
Can be overridden to produce alternative behavior.
c | - The CmdLine object the output is generated for. |
Implements TCLAP::CmdLineOutput.
Definition at line 124 of file ZshCompletionOutput.h.
|
inlinevirtual |
Prints the version to stdout.
Can be overridden to produce alternative behavior.
c | - The CmdLine object the output is generated for. |
Implements TCLAP::CmdLineOutput.
Definition at line 119 of file ZshCompletionOutput.h.
References getMutexList(), printArg(), and printOption().
|
protected |
Definition at line 118 of file ZshCompletionOutput.h.
|
protected |
Definition at line 119 of file ZshCompletionOutput.h.