code: def get_args(cls, dist, header=None):
      
      if header is None:
          header = cls.get_header()
      spec = str(dist.as_requirement())
      for type_ in 'console', 'gui':
          group = type_ + '_scripts'
          for name, ep in dist.get_entry_map(group).items():
              # ensure_safe_name
              if re.search(r'[\\/]', name):
                  raise ValueError("Path separators not allowed in script names")
              script_text = TEMPLATE.format(
                  ep.module_name,
                  ep.attrs[0],
                  '.'.join(ep.attrs),
                  spec,
                  group,
                  name,
              )
              args = cls._get_script_args(type_, name, header, script_text)
              for res in args:
                  yield res
docs: Overrides easy_install.ScriptWriter.get_args
  
      This method avoids using pkg_resources to map a named entry_point
      to a callable at invocation time.