MCPcopy Create free account
hub / github.com/DFHack/dfhack / add_option

Method add_option

plugins/manipulator.cpp:478–481  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

476 }
477 StringFormatter() {}
478 void add_option(string spec, string help, string (*callback)(T))
479 {
480 opt_list.push_back(std::make_tuple(spec, help, callback));
481 }
482 T_optlist *get_options() { return &opt_list; }
483 void clear_options()
484 {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected