return list(range(int(start, 10), int(end, 10) + 1))
parser = ArgumentParser()
parser.add_argument('--range', type=parseNumList)
args = parser.parse_args()
print(args)
Accept a range of numbers in the form of 0-5 using Python's argparse?