function for adding command line options