MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / print_usage

Function print_usage

third-party/lua-5.5.0/src/lua.c:84–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82
83
84static void print_usage (const char *badoption) {
85 lua_writestringerror("%s: ", progname);
86 if (badoption[1] == 'e' || badoption[1] == 'l')
87 lua_writestringerror("'%s' needs argument\n", badoption);
88 else
89 lua_writestringerror("unrecognized option '%s'\n", badoption);
90 lua_writestringerror(
91 "usage: %s [options] [script [args]]\n"
92 "Available options are:\n"
93 " -e stat execute string 'stat'\n"
94 " -i enter interactive mode after executing 'script'\n"
95 " -l mod require library 'mod' into global 'mod'\n"
96 " -l g=mod require library 'mod' into global 'g'\n"
97 " -v show version information\n"
98 " -E ignore environment variables\n"
99 " -W turn warnings on\n"
100 " -- stop handling options\n"
101 " - stop handling options and execute stdin\n"
102 ,
103 progname);
104}
105
106
107/*

Callers 1

pmainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected