MCPcopy Create free account
hub / github.com/Achain-Dev/Achain / print_usage

Function print_usage

src/Chain/libraries/glua/lua.cpp:128–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

126
127
128static void print_usage(const char *badoption) {
129 lua_writestringerror("%s: ", progname);
130 if (badoption[1] == 'e' || badoption[1] == 'l')
131 lua_writestringerror("'%s' needs argument\n", badoption);
132 else
133 lua_writestringerror("unrecognized option '%s'\n", badoption);
134 lua_writestringerror(
135 "usage: %s [options] [script [args]]\n"
136 "Available options are:\n"
137 " -e stat execute string 'stat'\n"
138 " -i enter interactive mode after executing 'script'\n"
139 " -l name require library 'name'\n"
140 " -v show version information\n"
141 " -E ignore environment variables\n"
142 " -- stop handling options\n"
143 " - stop handling options and execute stdin\n"
144 ,
145 progname);
146}
147
148
149/*

Callers 1

pmainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected