parameters: (_cache=[])
return_statement: return ok
docstring: Return True if command line does not contain any
      help or display requests.
docstring_summary: Return True if command line does not contain any
      help or display requests.
docstring_tokens: Return True if command line does not contain any help or display requests .
function: def _command_line_ok(_cache=[]):
      """ Return True if command line does not contain any
      help or display requests.
      """
      if _cache:
          return _cache[0]
      ok = True
      display_opts = ['--'+n for n in Distribution.display_option_names]
      for o in Distribution.display_options:
          if o[1]:
              display_opts.append('-'+o[1])
      for arg in sys.argv:
          if arg.startswith('--help') or arg=='-h' or arg in display_opts:
              ok = False
              break
      _cache.append(ok)
      return ok
function_tokens: def _command_line_ok ( _cache = [ ] ) : if _cache : return _cache [ 0 ] ok = True display_opts = [ '--' + n for n in Distribution . display_option_names ] for o in Distribution . display_options : if o [ 1 ] : display_opts . append ( '-' + o [ 1 ] ) for arg in sys . argv : if arg . startswith ( '--help' ) or arg == '-h' or arg in display_opts : ok = False break _cache . append ( ok ) return ok