code: def parse_options(self, prog_name, arguments):
          
          # Don't want to load configuration to just print the version,
          # so we handle --version manually here.
          if '--version' in arguments:
              self.exit_status(self.version, fh=sys.stdout)
          parser = self.create_parser(prog_name)
          options, args = parser.parse_args(arguments)
          return options, args
docs: Parse the available options.