title: Python argparse empty
body: <p>I'm coding a script that I need to execute with the following line (this is a compulsory request for an assignment).</p>
  <pre><code>python3 my_program.py method_name
  </code></pre>
  <p>Where method_name is the name of the algorithm in the script that I want to run in this execution. To do this I'm using argparse like this:</p>
  <pre><code>parser = argparse.ArgumentParser(description=None)
  parser.add_argument('--method',  type=str, help='Method')
      
  args = parser.parse_args([])
  </code></pre>
  <p>If I print the args this is the result:</p>
  <pre><code>print(args)
  </code></pre>
  <pre><code>Namespace(method=None)
  </code></pre>
  <p>So apparently args is empty even it seems like it read the execution line correctly, because I did not get any error message. Why is my code not reading the name of the method? Should I be using a different method than argparse to read the method_name with the requested line? Or am I using argparse wrong?</p>
  <p>Thank you! :)</p>