YesChief!
C++ argv parser
|
#include <yeschief.h>
Public Member Functions | |
HelpCommand (CLI *cli) | |
auto | getDescription () const -> std::string override |
auto | getName () const -> std::string override |
auto | run (const CLIResults &results) -> int override |
auto | setup (CLI &cli) -> void override |
help
command. It takes an optional parameter [command]
|
inlinenodiscardoverridevirtual |
Reimplemented from yeschief::Command.
|
inlinenodiscardoverridevirtual |
Implements yeschief::Command.
|
overridevirtual |
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 |
Implements yeschief::Command.
|
overridevirtual |
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 from yeschief::Command.