CatapultServer
v0.5.0.1 (Elephant)
|
Interface for the tools. More...
Public Member Functions | |
virtual bool | allowUnregisteredOptions () const |
Tool should return true if command line parser should allow unregistered options. More... | |
virtual CommandParser * | subCommandParser (const Options &) const |
Tool should return sub command parser. More... | |
virtual int | run (const Options &options)=0 |
Run the tool passing options collected from the command line. More... | |
Public Member Functions inherited from catapult::tools::CommandParser | |
virtual | ~CommandParser ()=default |
virtual std::string | name () const =0 |
Returns name of the command. More... | |
virtual void | prepareOptions (OptionsBuilder &optionsBuilder, OptionsPositional &positional)=0 |
Prepare named (optionsBuilder) and positional options of the tool. More... | |
Interface for the tools.
|
inlinevirtual |
Tool should return true if command line parser should allow unregistered options.
|
pure virtual |
Run the tool passing options collected from the command line.
Implemented in catapult::tools::NetworkCensusTool< TNodeInfo >.
|
inlinevirtual |
Tool should return sub command parser.