import argparse parser = argparse.ArgumentParser() parser.add_argument('--var', type=int)