| 46 | } |
| 47 | |
| 48 | static void usage(const char* message) |
| 49 | { |
| 50 | if (*message=='-') |
| 51 | fprintf(stderr,"%s: unrecognized option " LUA_QS "\n",progname,message); |
| 52 | else |
| 53 | fprintf(stderr,"%s: %s\n",progname,message); |
| 54 | fprintf(stderr, |
| 55 | "usage: %s [options] [filenames].\n" |
| 56 | "Available options are:\n" |
| 57 | " - process stdin\n" |
| 58 | " -l list\n" |
| 59 | " -o name output to file " LUA_QL("name") " (default is \"%s\")\n" |
| 60 | " -p parse only\n" |
| 61 | " -s strip debug information\n" |
| 62 | " -v show version information\n" |
| 63 | " -- stop handling options\n", |
| 64 | progname,Output); |
| 65 | exit(EXIT_FAILURE); |
| 66 | } |
| 67 | |
| 68 | #define IS(s) (strcmp(argv[i],s)==0) |
| 69 | |