def main()

in SSReader.py [0:0]


def main():
    # TODO: module argparse to parse command line arguments
    # prepare to accept cmd arguments
    fullCmdArguments = sys.argv
    argumentList = fullCmdArguments[1:]
    unixOptons = "c:r:x:t:f:s:p:"
    gnuOptions = ["row=", "columnKey=", "columnValue=", "target=", "file=", "sheet=", "placeholder="]
    try:
        arguments, values = getopt.getopt(argumentList, unixOptons, gnuOptions)
    except getopt.error as error:
        print (str(error))
        sys.exit(2)

    # TODO: put the file handling code into one function
    # Default column and row index
    columnKey = 'a'
    row = 1
    columnValue = 'b'
    target = "android"
    file = ""
    sheetIndex = 0
    initialPlaceHolder = "{}"

    for currentArgument, currentValue in arguments:
        if currentArgument in ("-c", "--columnKey"):
            columnKey = currentValue
        elif currentArgument in ("-r", "--row"):
            row = currentValue
        elif currentArgument in ("-x", "--columnValue"):
            columnValue = currentValue
        elif currentArgument in ("-t", "--target"):
            target = currentValue
        elif currentArgument in ("-f", "--file"):
            file = currentValue
        elif currentArgument in ("-s", "--sheet"):
            sheetIndex = currentValue
        elif currentArgument in ("-p", "--placeholder"):
            initialPlaceHolder = currentValue
    if len(arguments) < 1:
        print("""