title: What is wrong with this python3 script?
body: <p>Have a simple python script which I am unable to make work in python3 on macOS.</p>
  
  <pre><code>import argparse
  
  scriptMode = 4
  
  my_parser = argparse.ArgumentParser(prog='Script v1.0', description='use mode as appropriate')
  my_parser.add_argument('-m', dest='scriptMode', type=int, choices=range(1, 4), help='Enter mode 1 to 3',default=1)
  my_parser.parse_args()
  
  print (scriptMode)
  
  </code></pre>
  
  <p>Every time I run the program I get output as 4, which is the initial value I pass.this value is being used as debug as the parser wasn't working. with my understanding, the argument parser when run should store 1 in variable scriptMode and the print statement should print 1. I am running the script as <em>italic</em> python3 scriptname.py <em>italic</em>. help (python3.8.2)</p>