When I introduce to the command line "--debug" argument I need to set variable "debug", from my python script, to the value 1.
I've tried something, but I have to write "--debug=1" to the command line to set variable.
parser = argparse.ArgumentParser()
parser.add_argument("--debug", default=2)
When I run the command:
python script.py --rev1=1.2 --rev2=1.5 --debug
my variable "debug" should have value 1.