#!/usr/bin/env python

import sys

import fabric

if __name__ == '__main__':
    try:
        fabric.main(sys.argv[1:])
    except SystemExit:
        # a number of internal functions might raise this one.
        raise
    except:
        sys.excepthook(*sys.exc_info())
        # we might leave stale threads if we don't explicitly exit()
        exit(1)
    exit(0)
