MCPcopy Create free account
hub / github.com/ChaiScript/ChaiScript / help

Function help

samples/fun_call_performance.cpp:146–163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

144}
145
146void help(int n) {
147 if (n >= 0) {
148 std::cout << "ChaiScript evaluator. To evaluate an expression, type it and press <enter>." << std::endl;
149 std::cout << "Additionally, you can inspect the runtime system using:" << std::endl;
150 std::cout << " dump_system() - outputs all functions registered to the system" << std::endl;
151 std::cout << " dump_object(x) - dumps information about the given symbol" << std::endl;
152 }
153 else {
154 std::cout << "usage : chai [option]+" << std::endl;
155 std::cout << "option:" << std::endl;
156 std::cout << " -h | --help" << std::endl;
157 std::cout << " -i | --interactive" << std::endl;
158 std::cout << " -c | --command cmd" << std::endl;
159 std::cout << " -v | --version" << std::endl;
160 std::cout << " - --stdin" << std::endl;
161 std::cout << " filepath" << std::endl;
162 }
163}
164
165std::string helloWorld(const std::string &t_name)
166{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected