#!/usr/bin/python
# -*- coding: utf-8 -*-

import sys
import subprocess
import argparse

__version__ = 1.0
__description__ = "A tmux wrapper featuring shortcuts and session presets."


def main(argv):
    parser = argparse.ArgumentParser(description=__description__)
    parser.add_argument("session",
                        metavar="session",
                        type=str,
                        nargs="?",
                        help="the name of the tmux session to start or attach")
    parser.add_argument("-l", "--list",
                        action="store_true",
                        help="list all open sessions and session presets")
    parser.add_argument("-k", "--kill",
                        metavar="session",
                        action="store",
                        help="kill a session")

    args = parser.parse_args()

    err = ""
    if args.kill:
        pass
    elif args.list:
        pass
    elif args.session:
        pass

if __name__ == "__main__":
    main(sys.argv[1:])
@@ -858,116 +858,844 @@
     
-err = %22%22%0A    if args.kill:%0A        pass%0A    elif args.list:%0A        pass%0A    elif args.session:%0A        pass
+if len(argv) == 0:%0A        parser.print_help()%0A%0A    if args.kill:%0A        p = subprocess.Popen(%22tmux kill-session -t %7B%7D%22.format(args.kill),%0A                             stdout=subprocess.PIPE,%0A                             stderr=subprocess.PIPE,%0A                             shell=True)%0A        out, err = p.communicate()%0A    elif args.list:%0A        p = subprocess.Popen(%22tmux ls%22,%0A                             stdout=subprocess.PIPE,%0A                             stderr=subprocess.PIPE,%0A                             shell=True)%0A        out, err = p.communicate()%0A    elif args.session:%0A        p = subprocess.Popen(%22tmux new -s %7B%7D%22.format(args.session),%0A                             stdout=subprocess.PIPE,%0A                             stderr=subprocess.PIPE,%0A                             shell=True)%0A        out, err = p.communicate()
 %0A%0Aif

Add kill, list, and create commands