Perform proper command-line option handling.