ROSE 0.11.145.306
|
Functor to print the Unix man page.
This functor, when applied, creates a Unix manual page from available documentation in the parser, and then invokes standard Unix commands to format the text and page it to standard output. Strange things might happen if standard input is not the terminal, since the pager will probably be expecting to read commands from standard input.
Definition at line 1664 of file Sawyer/CommandLine.h.
#include <Sawyer/CommandLine.h>
Public Types | |
typedef SharedPointer< ShowHelp > | Ptr |
Reference counting pointer for this class. | |
![]() | |
typedef SharedPointer< SwitchAction > | Ptr |
Reference counting pointer for this class. | |
Static Public Member Functions | |
static Ptr | instance () |
Allocating constructor. | |
Protected Member Functions | |
ShowHelp () | |
Constructor for derived classes. | |
virtual void | operator() (const ParserResult &) |
Additional Inherited Members | |
![]() | |
void | run (const ParserResult &parserResult) |
Runs the action. | |
![]() | |
SharedObject () | |
Default constructor. | |
SharedObject (const SharedObject &) | |
Copy constructor. | |
virtual | ~SharedObject () |
Virtual destructor. | |
SharedObject & | operator= (const SharedObject &) |
Assignment. | |
Reference counting pointer for this class.
Definition at line 1672 of file Sawyer/CommandLine.h.
|
protected |
Constructor for derived classes.
Non-subclass users should use instance instead.
|
static |
Allocating constructor.
Returns a pointer to a new ShowHelp object. Uses will most likely want to use the showHelp factory instead, which requires less typing.
|
protectedvirtual |
Implements Sawyer::CommandLine::SwitchAction.