Added an API for getting commandline options.