def parse_arguments():
    '\n        Parse input arguments. Passing the API key is defined as mandatory.\n    '
    parser = argparse.ArgumentParser(description='Incrementally exports JSON orders data into CSV format and optionally into a SQLite DB.')
    parser.add_argument('-k', '--key', type=str, required=True, help='API key to be used to perform the REST request to the backend.')
    parser.add_argument('-l', '--locale', type=str, required=False, help='Specify the locale: it_IT for italian. Otherwise machine default one.')
    parser.add_argument('-d', '--db', action='store_true', required=False, help='Instruct the tool to load a SQLite database up.')
    parser.add_argument('-p', '--path', type=str, required=True, help='Define datastore base path to csv/ and db/ folders (csv/ and db/ folders should be already created).')
    parser.add_argument('-n', '--number', type=int, required=True, help='Define how many records each REST call should pull down.')
    parser.add_argument('-c', '--customer', type=int, required=False, help='Define whether the customer table should be updated contextually: it requires the number of cycles per page (max 50 records')
    args = parser.parse_args()
    return args
Parse input arguments. Passing the API key is defined as mandatory.
def parse_arguments():
    '\n        \n    '
    parser = argparse.ArgumentParser(description='Incrementally exports JSON orders data into CSV format and optionally into a SQLite DB.')
    parser.add_argument('-k', '--key', type=str, required=True, help='API key to be used to perform the REST request to the backend.')
    parser.add_argument('-l', '--locale', type=str, required=False, help='Specify the locale: it_IT for italian. Otherwise machine default one.')
    parser.add_argument('-d', '--db', action='store_true', required=False, help='Instruct the tool to load a SQLite database up.')
    parser.add_argument('-p', '--path', type=str, required=True, help='Define datastore base path to csv/ and db/ folders (csv/ and db/ folders should be already created).')
    parser.add_argument('-n', '--number', type=int, required=True, help='Define how many records each REST call should pull down.')
    parser.add_argument('-c', '--customer', type=int, required=False, help='Define whether the customer table should be updated contextually: it requires the number of cycles per page (max 50 records')
    args = parser.parse_args()
    return args