args-parser 6.3.3
|
HelpPrinter is a class that prints help. More...
#include <help_printer.hpp>
Public Types | |
using | ArgPtr = std::unique_ptr< ArgIface, details::Deleter< ArgIface > > |
Smart pointer to the argument. | |
Public Member Functions | |
HelpPrinter () | |
virtual | ~HelpPrinter () |
void | print (OutStreamType &to) override |
Print help for all arguments. | |
void | print (const String &name, OutStreamType &to, Command *parent=nullptr) override |
Print help for the given argument. | |
void | setExecutable (const String &exe) override |
Set executable name. | |
void | setAppDescription (const String &desc) override |
Set description for the application. | |
void | setCmdLine (CmdLine *cmd) override |
Set command line. | |
void | setLineLength (String::size_type length) override |
Set line length for the help. | |
ArgIface * | findArgument (const String &name) override |
Public Member Functions inherited from Args::HelpPrinterIface | |
HelpPrinterIface () | |
virtual | ~HelpPrinterIface () |
HelpPrinter is a class that prints help.
Definition at line 63 of file help_printer.hpp.
using Args::HelpPrinter::ArgPtr = std::unique_ptr< ArgIface, details::Deleter< ArgIface > > |
Smart pointer to the argument.
Definition at line 68 of file help_printer.hpp.
|
inline |
Definition at line 157 of file help_printer.hpp.
|
inlinevirtual |
Definition at line 164 of file help_printer.hpp.
Implements Args::HelpPrinterIface.
Definition at line 101 of file help_printer.hpp.
|
inlineoverridevirtual |
Print help for the given argument.
name | Name of the argument. I.e. "-t" or "--timeout". |
to | Output stream for the printing help. |
parent | Parent command if present. |
Implements Args::HelpPrinterIface.
Definition at line 492 of file help_printer.hpp.
|
inlineoverridevirtual |
Print help for all arguments.
to | Output stream for the printing help. |
Implements Args::HelpPrinterIface.
Definition at line 345 of file help_printer.hpp.
|
inlineoverridevirtual |
Set description for the application.
Implements Args::HelpPrinterIface.
Definition at line 708 of file help_printer.hpp.
|
inlineoverridevirtual |
Set command line.
Implements Args::HelpPrinterIface.
Definition at line 714 of file help_printer.hpp.
|
inlineoverridevirtual |
Set executable name.
Implements Args::HelpPrinterIface.
Definition at line 702 of file help_printer.hpp.
|
inlineoverridevirtual |
Set line length for the help.
Implements Args::HelpPrinterIface.
Definition at line 720 of file help_printer.hpp.