title: Running Python Scripts with Argument Name and Value
body: <p>I want to run a python script from the CMD line with argument and value eg:</p>
  
  <pre><code>Question.py   -TA="Text001"  -TB= "Text002"   -TC= "Text003"
  </code></pre>
  
  <p>Is there a way to do that in python ?</p>
  
  <p>Thanks,</p>
  
  <p>Here is my example code </p>
  
  <pre><code>import argparse
  
  
  def TestingArg(Text1,Text2,Text3,):
        print("the text1  is : "+Text1 )
        print("the text1  is : "+Text2 )
        print("the text1  is : "+Text3 )
  
  def Main():
      parser=argparse.ArgumentParser()
      parser.add_argument("-TA","Text1",type=str,help="Text ex number 1")
      parser.add_argument("-TB",type=str,help="Text ex number 2")
      parser.add_argument("-TC",type=str,help="Text ex number 3")
      args =parser.parse_args()
      TestingArg(args.Text1,args.Text2,args.Text3)
  
  
  if __name__=="__main__":
     Main()
  </code></pre>