In an attempt to make the Brandywine script self contained, I’ve decided to use command line arguments to make certain calls to the Rotten Tomatoes API. I’m using argparse as my method of generating command flags to use with the script. Here’s what I’ve got thus far:
I spent some time combing through the Python documentation trying to comprehend exactly how the argparse module is used. The add_argument method adds the command line arg with long and short versions, offers help information, and with certain flags, you can default to ‘no arguments passed’ as a result of using that flag. There’s more for me to finish reading about it, but so far, it’s straightforward.