MCPcopy Create free account
hub / github.com/esmBot/esmBot / printHelp

Function printHelp

natives/cli/cli.cc:105–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103}
104
105std::string printHelp() {
106 std::stringstream out;
107 out << "Usage: esmb-cli function [input] output" << std::endl << std::endl;
108 out << "Available functions:" << std::endl;
109
110 bool started = false;
111 for (auto cmd : esmb::Image::FunctionMap) {
112 if (started) out << ", ";
113 out << cmd.first;
114 started = true;
115 }
116 for (auto cmd : esmb::Image::NoInputFunctionMap) {
117 if (started) out << ", ";
118 out << cmd.first;
119 started = true;
120 }
121 out << std::endl;
122
123 return out.str();
124}
125
126int main(int argc, char *argv[]) {
127 Args args = parseArguments(argc, argv);

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected