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

Function help

src/main.cpp:149–165  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected