title: running the python script in command line does not print any output
body: <p>I want to make a script in python and then run it from the command line. The script is called <code>test.py</code> and the command to run it is:</p>
  
  <pre><code>python3 test.py John Jackson
  </code></pre>
  
  <p>Here is the expected output:</p>
  
  <pre><code>John Jackson
  </code></pre>
  
  <p>And here is the python script I made:</p>
  
  <pre><code>class person:
  
      def __init__(self, first, last):
          self.firstname = first
          self.lastname = last
  
      def get_first(self):
          return self.firstname
  
      def get_last(self):
          return self.lastname
  
  import argparse
  
  def main():
      parser = argparse.ArgumentParser()
      parser.add_argument('first')
      parser.add_argument('last')
      args = parser.parse_args()
      c1 = person(args.first, args.last)
      print(c1)
  </code></pre>
  
  <p>But the problem is when I run the script from the command line using the mentioned command, it returns nothing. Do you know how to fix it and get the expected output?</p>