public void parseCommandline(String[] args) {
int status = PARAM_DEFAULT;
for(String arg: args) {
if(arg.charAt(0) == '-') {
switch(arg.charAt(1)) {
case 'd':
debugModus = true;
break;
case 'l':
status = PARAM_LANG;
break;
}
} else {
switch(status) {
case PARAM_LANG:
lang = arg;
break;
}
status = PARAM_DEFAULT;
}
}
}