code: def get_options(argv):
      
      arg_parser = make_arg_parser()
      options, unknown = arg_parser.parse_known_args(argv)
      if unknown:
          arg_parser.print_help()
          raise exceptions.UnknownArguments(
              "unknown args: {0!r}".format(unknown))
      options.print_help = arg_parser.print_help
      return options
docs: Called to parse the given list as command-line arguments.
  
      :returns:
          an options object as returned by argparse.