Factor out the common help and version CLI options.

The options method had become a bit long.