cli: parse command line options for base command.