def _main():
    if len(sys.argv) == 1:
        print "Please add a spreadsheet to process"
        return

    spreadsheetName = sys.argv[1]
    (questionnaire, layout) = loadSpreadsheet(spreadsheetName)
    generateQuestionnaireCSV(spreadsheetName, questionnaire)
    generateLayoutCSV(spreadsheetName, layout)
Parse arguments and run checks generate the csv files
dataset/ETHPy150Open sahana/eden/static/scripts/tools/ADAT_CSV_generator.py/_main