ref: 44ab8a339c78bcc3460d44b2f435116f21faa60a
dir: /main.c/
#include <u.h> #include <libc.h> #include <bio.h> #include "dat.h" #include "fns.h" void usage(void); void main(int argc, char *argv[]) { ARGBEGIN{ case 'd': debug = 1; break; default: usage(); }ARGEND initflags(); initstreams(); initmodules(); while(argc != 0){ parsemodule(argv[0]); argc--; argv++; } repl(); exits(nil); } void usage(void) { fprint(2, "Usage: pprolog [-d] modulefiles\n"); exits("Usage"); }