def cli(self):
        """
        Return and optionally create a CommandLine object.
        """
        if not self._commandline:
            self._commandline = CommandLine([])

        return self._commandline

        Return and optionally create a CommandLine object.
        
src/gitsweep/tests/testcases.py