basic command line optparser