| 40 | |
| 41 | |
| 42 | static void print_usage (void) { |
| 43 | fprintf(stderr, |
| 44 | "usage: %s [options] [script [args]].\n" |
| 45 | "Available options are:\n" |
| 46 | " -e stat execute string " LUA_QL("stat") "\n" |
| 47 | " -l name require library " LUA_QL("name") "\n" |
| 48 | " -i enter interactive mode after executing " LUA_QL("script") "\n" |
| 49 | " -v show version information\n" |
| 50 | " -- stop handling options\n" |
| 51 | " - execute stdin and stop handling options\n" |
| 52 | , |
| 53 | progname); |
| 54 | fflush(stderr); |
| 55 | } |
| 56 | |
| 57 | |
| 58 | static void l_message (const char *pname, const char *msg) { |