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

Function help

src/libfuzzer_client.cpp:150–166  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected