def Main():
    try:
        # try to get command line args 
        opts, args = getopt.getopt(sys.argv[1:],
                     "hsi:o:c:", ["help", "show", "input=", "out=", "color="])
    except getopt.GetoptError:
        # on error print help information and exit:
        Usage()
        sys.exit(2)
    # init some names
    input = None
    output = None
    scheme = None

    # if we have args then process them
    for o, a in opts:
        if o in ("-h", "--help"):
            Usage()
            sys.exit()
        if o in ("-o", "--out"):
            output = a
        if o in ("-i", "--input"):
            input = a
            if input in('.','_'):
                input = os.getcwd()
        if o  in ("-s", "--show"):
            show = 1
        else:
            show = 0
        if o in ("-c", "--color"):
            try:
               scheme = eval('_%s'%a)
            except:
               scheme = None

    if input is None:
        # if there was no input specified then we try to
        # parse ourselves and do it in diffrent flavors.
        WebIt(sys.argv[0], '/MyDir/null', _Null, 1)
        WebIt(sys.argv[0], '/MyDir/dark', _Dark, 1)
        WebIt(sys.argv[0], '/MyDir/lite', _Lite, 1)
        WebIt(sys.argv[0], '/MyDir/idle', _Idle, 1)
        WebIt(sys.argv[0], '/MyDir/pythonwin', _PythonWin, 1)
    else:
        # if there was at least an input given we can proceed
        WebAll(input, output, scheme, show)
Sends an ACK message for the request.
dataset/ETHPy150Open anandology/pyjamas/examples/showcase/pyColourize.py/Main--crossover with--dataset/ETHPy150Open Tanganelli/CoAPthon/coapthon/server/coap.py/CoAP._send_ack