Checks command line options