Integrated use of getopt to take user choices