Argument parsing helpers for the CLI.
Parses command-line arguments and returns the command and options.