found major issue with get_parameters
if a switch is set, that expects a second argument argv[i + 1]
but this argument does not exist get_parameters will misbehave

Signed-off-by: Stefan Venz <ikstream86@gmail.com>