Properly testing for the state of options specified on the command line.