![]() |
PIDUINO
|
Option printer for man pages. More...
#include <popl.h>
Public Member Functions | |
GroffOptionPrinter (const OptionParser *option_parser) | |
GroffOptionPrinter implementation /////////////////////////////////. | |
~GroffOptionPrinter () override=default | |
std::string | print (const Attribute &max_attribute=Attribute::optional) const override |
Protected Attributes | |
const OptionParser * | option_parser_ |
Private Member Functions | |
std::string | to_string (Option_ptr option) const |
Option printer for man pages.
Creates help messages in groff format that can be used in man pages
|
inlineexplicit |
GroffOptionPrinter implementation /////////////////////////////////.
|
overridedefault |
|
inlineoverridevirtual |
Create a help message
max_attribute | show options up to this level (optional, advanced, expert) |
Implements Piduino::OptionPrinter.
Definition at line 1130 of file popl.h.
References Piduino::OptionParser::description(), Piduino::hidden, Piduino::OptionPrinter::option_parser_, Piduino::optional, Piduino::OptionParser::options(), and to_string().
|
inlineprivate |
Definition at line 1098 of file popl.h.
References Piduino::optional, and Piduino::required.
Referenced by print().
|
protectedinherited |
Definition at line 430 of file popl.h.
Referenced by Piduino::ConsoleOptionPrinter::print(), print(), and Piduino::BashCompletionOptionPrinter::print().