parameters: (self)
return_statement: return cli
docstring: Return the active `CommandLineInterface`.
docstring_summary: Return the active `CommandLineInterface`.
docstring_tokens: Return the active CommandLineInterface .
function: def _active_cli(self):
          """
          Return the active `CommandLineInterface`.
          """
          cli = self.cli
  
          # If there is a sub CLI. That one is always active.
          while cli._sub_cli:
              cli = cli._sub_cli
  
          return cli
function_tokens: def _active_cli ( self ) : cli = self . cli # If there is a sub CLI. That one is always active. while cli . _sub_cli : cli = cli . _sub_cli return cli