YesChief!
C++ argv parser
|
#include <yeschief.h>
Public Member Functions | |
virtual auto | getDescription () const -> std::string |
virtual auto | getName () const -> std::string=0 |
virtual auto | run (const CLIResults &results) -> int=0 |
virtual auto | setup (CLI &cli) -> void |
A command that can be executed
|
inlinenodiscardvirtual |
Reimplemented in yeschief::HelpCommand.
|
nodiscardpure virtual |
Implemented in yeschief::HelpCommand.
|
pure virtual |
Parse argv against configuration of the command and pass the result to this method.
This method is launched when parent CLI is run with an argv corresponding to the current command
results | Results of the argv parsing |
Implemented in yeschief::HelpCommand.
|
inlinevirtual |
Configure options or sub-commands of the current command.
The configuration is done with a CLI object the same way you do it with your own one
cli | The sub CLI of the command |
Reimplemented in yeschief::HelpCommand.