![]() |
PIDUINO
|
Option printer for bash completion. More...
#include <popl.h>
Public Member Functions | |
BashCompletionOptionPrinter (const OptionParser *option_parser, std::string program_name) | |
BashCompletionOptionPrinter implementation /////////////////////////////////. | |
~BashCompletionOptionPrinter () override=default | |
std::string | print (const Attribute &max_attribute=Attribute::optional) const override |
Protected Attributes | |
const OptionParser * | option_parser_ |
Private Attributes | |
std::string | program_name_ |
Option printer for bash completion.
Creates a script with all options (short and long) that can be used for bash completion
|
inline |
BashCompletionOptionPrinter implementation /////////////////////////////////.
|
overridedefault |
|
inlineoverridevirtual |
Create a help message
max_attribute | show options up to this level (optional, advanced, expert) |
Implements Piduino::OptionPrinter.
Definition at line 1167 of file popl.h.
References Piduino::OptionPrinter::option_parser_, and program_name_.
|
protectedinherited |
Definition at line 430 of file popl.h.
Referenced by Piduino::ConsoleOptionPrinter::print(), Piduino::GroffOptionPrinter::print(), and print().