예제 #1
0
def main(args):
    if len(args) == 3:
        execute(args[1], args[2])
    else:
        print(
            "SCRIPT_ERROR there should be 2 arguments, file, crs. Now there are",
            len(args) - 1)
    exitCall()
예제 #2
0
def main(args):
    if len(args) == 5:
        execute(args[1], args[2], args[3], args[4])
    elif len(args) == 4:
        execute(args[1], args[2], args[3], "InvalidDistance")
    else:
        print(
            "SCRIPT_ERROR there should be 4 or 3 arguments, inputFile1, inputFile2, predicate with optional distance. Now there are ",
            len(args) - 1)
    exitCall()
def main(args):
    if len(args) == 5:
        execute(args[1], args[2], args[3], args[4])
    elif len(args) == 4:
        execute(args[1], args[2], args[3], "")
    else:
        print(
            "SCRIPT_ERROR there should be 3 or 4 arguments, inputFile1, field, operator and optional value. Now there are ",
            len(args) - 1)

    exitCall()