Fix a few typos in command-line option logic that were leading to incorrect results.