parse argc/argv tidy for console programs