+void PrintUsage(const char *progname)
+{
+ fprintf(stderr, "Usage: %s\n", progname);
+ fprintf(stderr, " -p Set server port (default 11020)\n");
+ fprintf(stderr, " -d Set debug level (0 - 2, default 0)\n");
+ fprintf(stderr, " --itemsfile\n");
+ fprintf(stderr, " Set debug level (0 - 2, default 0)\n");
+ fprintf(stderr, " --cokeport\n");
+ fprintf(stderr, " Coke machine serial port (Default \"/dev/ttyS0\")\n");
+ fprintf(stderr, " --doorport\n");
+ fprintf(stderr, " Door modem/relay serial port (Default \"/dev/ttyS3\")\n");
+ fprintf(stderr, " --cokebank\n");
+ fprintf(stderr, " Coke bank database file (Default \"cokebank.db\")\n");
+ fprintf(stderr, " --[dont-]daemonise\n");
+ fprintf(stderr, " Run (or explicitly don't) the server disconnected from the terminal\n");
+}
+