original_docstring:  
          Lists all available tools in WhiteboxTools.
          
docstring: Lists all available tools in WhiteboxTools.
docstring_tokens: Lists all available tools in WhiteboxTools .
code: def list_tools(self, keywords=[]):
          ''' 
          Lists all available tools in WhiteboxTools.
          '''
          try:
              os.chdir(self.exe_path)
              args = []
              args.append("." + os.path.sep + self.exe_name)
              args.append("--listtools")
              if len(keywords) > 0:
                  for kw in keywords:
                      args.append(kw)
  
              proc = Popen(args, shell=False, stdout=PIPE,
                           stderr=STDOUT, bufsize=1, universal_newlines=True)
              ret = {}
              line = proc.stdout.readline()  # skip number of available tools header
              while True:
                  line = proc.stdout.readline()
                  if line != '':
                      if line.strip() != '':
                          name, descr = line.split(':')
                          ret[to_snakecase(name.strip())] = descr.strip()
                  else:
                      break
  
              return ret
          except (OSError, ValueError, CalledProcessError) as err:
              return err
code_tokens: def list_tools ( self , keywords = [ ] ) : try : os . chdir ( self . exe_path ) args = [ ] args . append ( "." + os . path . sep + self . exe_name ) args . append ( "--listtools" ) if len ( keywords ) > 0 : for kw in keywords : args . append ( kw ) proc = Popen ( args , shell = False , stdout = PIPE , stderr = STDOUT , bufsize = 1 , universal_newlines = True ) ret = { } line = proc . stdout . readline ( ) while True : line = proc . stdout . readline ( ) if line != '' : if line . strip ( ) != '' : name , descr = line . split ( ':' ) ret [ to_snakecase ( name . strip ( ) ) ] = descr . strip ( ) else : break return ret except ( OSError , ValueError , CalledProcessError ) as err : return err
short_docstring: Lists all available tools in WhiteboxTools.
short_docstring_tokens: Lists all available tools in WhiteboxTools .
comment: ''' 
          Lists all available tools in WhiteboxTools.
          '''$SEP$# skip number of available tools header