Source

clip2zeus / clip2zeus / clip2zeus_ctl.py

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

from clip2zeus.common import Clip2ZeusApp, Clip2ZeusCtl

def main():
    from optparse import OptionParser
    import sys

    parser = OptionParser()
    options, args = parser.parse_args()

    if len(args) < 1:
        sys.exit('Please specify a command: %s' % ', '.join(Clip2ZeusApp.EXPOSED))

    Clip2ZeusCtl().execute_command(args.pop(0), args)

if __name__ == '__main__':
    main()