parameters: ()
return_statement: return args
docstring: Return a list of command-line arguments reproducing the current
      settings in sys.flags and sys.warnoptions.
docstring_summary: Return a list of command-line arguments reproducing the current
      settings in sys.flags and sys.warnoptions.
docstring_tokens: Return a list of command - line arguments reproducing the current settings in sys . flags and sys . warnoptions .
function: def _args_from_interpreter_flags():
      """Return a list of command-line arguments reproducing the current
      settings in sys.flags and sys.warnoptions."""
      flag_opt_map = {
          'debug': 'd',
          # 'inspect': 'i',
          # 'interactive': 'i',
          'optimize': 'O',
          'dont_write_bytecode': 'B',
          'no_user_site': 's',
          'no_site': 'S',
          'ignore_environment': 'E',
          'verbose': 'v',
          'bytes_warning': 'b',
          'hash_randomization': 'R',
          'py3k_warning': '3',
      }
      args = []
      for flag, opt in flag_opt_map.items():
          v = getattr(sys.flags, flag)
          if v > 0:
              args.append('-' + opt * v)
      for opt in sys.warnoptions:
          args.append('-W' + opt)
      return args
function_tokens: def _args_from_interpreter_flags ( ) : flag_opt_map = { 'debug' : 'd' , # 'inspect': 'i', # 'interactive': 'i', 'optimize' : 'O' , 'dont_write_bytecode' : 'B' , 'no_user_site' : 's' , 'no_site' : 'S' , 'ignore_environment' : 'E' , 'verbose' : 'v' , 'bytes_warning' : 'b' , 'hash_randomization' : 'R' , 'py3k_warning' : '3' , } args = [ ] for flag , opt in flag_opt_map . items ( ) : v = getattr ( sys . flags , flag ) if v > 0 : args . append ( '-' + opt * v ) for opt in sys . warnoptions : args . append ( '-W' + opt ) return args