| 23 | VAR int warning_info = 0, warning_version = 0; |
| 24 | |
| 25 | static void usage(char *progname) |
| 26 | { |
| 27 | printf("libparse: a syntax-checker for Singular Libraries.\n"); |
| 28 | printf("USAGE: %s [options] singular-library\n", progname); |
| 29 | printf("Options:\n"); |
| 30 | printf(" -f <singular library> : performs syntax-checks\n"); |
| 31 | printf(" -d [digit] : digit=1,..,4 increases the verbosity of the checks\n"); |
| 32 | printf(" -s : turns on reporting about violations of unenforced syntax rules\n"); |
| 33 | printf(" -i : perl output of examples and help of procs\n"); |
| 34 | printf(" -c : print category of lib to stdout and exit\n"); |
| 35 | printf(" -h : print this message\n"); |
| 36 | exit(1); |
| 37 | } |
| 38 | |
| 39 | STATIC_VAR char* lib_file = NULL; |
| 40 | |