I am trying to work with argparse in python and I do not know how to call the program at command line to see if it works.
import argparse
parser = argparse.ArgumentParser()
parser.add_argument("DocID", type= int, help= "Insert DocID Here")
parser.add_argument("echo", help = "Enter in the FileName to be read")
args = parser.parse_args()
print args
This is my incredibly basic program that I am trying to use just to learn more about how argparse works. I just need to learn how and where to call the program to be able to use the arguments I give it.
Edit: To make my question more clear sorry. I have this code, but I do not know how to call the program as a whole so that I can run it. Like how would I run this in command line? Because when run just in IDLE it produces and error because of a lack of commands