basic command line support using getopt