Parsing basic command line options and urls for API requests