3 * UCC (University [of WA] Computer Club) Electronic Accounting System
5 * main.c - Initialisation Code
7 * This file is licenced under the 3-clause BSD Licence. See the file
8 * COPYING for full details.
16 extern void Init_Cokebank(void); // cokebank.c
17 extern void Load_Itemlist(void);
18 extern void Server_Start(void);
19 extern int giServer_Port;
20 extern char* gsItemListFile;
21 extern char* gsCoke_SerialPort;
27 int main(int argc, char *argv[])
32 for( i = 1; i < argc; i++ )
35 if( arg[0] == '-' && arg[1] != '-')
40 giServer_Port = atoi(argv[++i]);
43 giDebugLevel = atoi(argv[++i]);
50 else if( arg[0] == '-' && arg[1] == '-' ) {
51 if( strcmp(arg, "--itemsfile") == 0 ) {
52 gsItemListFile = argv[++i];
54 if( strcmp(arg, "--cokeport") == 0 ) {
55 gsCoke_SerialPort = argv[++i];