parameters: (self, commands)
return_statement: return self.keepOnlyRequired(commands, self.registry.cmddict)
docstring: Check each command name in the commands list and remove it if not
          required by the generator.
  
          This will allow some state operations to take place before endFile.
docstring_summary: Check each command name in the commands list and remove it if not
          required by the generator.
docstring_tokens: Check each command name in the commands list and remove it if not required by the generator .
function: def findRequiredCommands(self, commands):
          """Check each command name in the commands list and remove it if not
          required by the generator.
  
          This will allow some state operations to take place before endFile."""
          return self.keepOnlyRequired(commands, self.registry.cmddict)
function_tokens: def findRequiredCommands ( self , commands ) : return self . keepOnlyRequired ( commands , self . registry . cmddict )