- else if( arg[0] == '-' && arg[1] == '-' ) {
- if( strcmp(arg, "--itemsfile") == 0 ) {
- if( i + 1 >= argc ) return -1;
- gsItemListFile = argv[++i];
- }
- else if( strcmp(arg, "--cokeport") == 0 ) {
- if( i + 1 >= argc ) return -1;
- gsCoke_SerialPort = argv[++i];
- }
- else if( strcmp(arg, "--snackport") == 0 ) {
- if( i + 1 >= argc ) return -1;
- gsSnack_SerialPort = argv[++i];
- }
- else if( strcmp(arg, "--doorport") == 0 ) {
- if( i + 1 >= argc ) return -1;
- gsDoor_SerialPort = argv[++i];
- }
- else if( strcmp(arg, "--cokebank") == 0 ) {
+ else if( arg[0] == '-' && arg[1] == '-' )
+ {
+ if( strcmp(arg, "--configfile") == 0 ) {