code: def get_optparser(self):
          
          version = (self.version is not None and
                     "%s %s" % (self._name_str, self.version) or None)
          return CmdlnOptionParser(self, version=version)
docs: Hook for subclasses to set the option parser for the
          top-level command/shell.
  
          This option parser is used retrieved and used by `.main()' to
          handle top-level options.
  
          The default implements a single '-h|--help' option. Sub-classes
          can return None to have no options at the top-level. Typically
          an instance of CmdlnOptionParser should be returned.