INNER CODE UNIT · Python
cli
tmux-python/tmuxp · src/tmuxp/cli/__init__.py:281
def cli(_args: list[str] | None = None) -> None:
"""Manage tmux sessions.
Pass the "--help" argument to any command to see detailed help.
See detailed documentation and examples at:
http://tmuxp.git-pull.com/
"""
try:
has_minimum_version()
except TmuxCommandNotFound:
tmuxp_echo("tmux not found. tmuxp requires you install tmux first.")
sys.exit()
except exc.TmuxpException as e:
tmuxp_echo(str(e))
sys.exit()
parser = create_parser()
args = parser.parse_args(_args, namespace=ns)