Wrote the option parser for the CLI.