parse commandline options ourselves, because otherwise --serial is caught.