#!/usr/bin/env python

import optparse, sys
from ${package}.client import Client

if __name__ == '__main__':
    p = optparse.OptionParser(version=${repr(package)}.title() + " Client" + ${package}.__VERSION__, usage="%prog  [options]")
    p.add_option("-s", "--service", action="store", type="string", dest="service",
                 default="http://localhost:23090", help="The service URL that the client will connect to.")

    (opts, args) = p.parse_args()

    if len(args) > 0:
        p.print_version()
        p.print_help()
        sys.exit(1)        
    
    c = Client(opts.service)
