Write a Python program howler.py that will uppercase all the text from the command line or from a file. The program should also take a named option of -o|--outfile to write the output. The default output should be standard out (STDOUT).
$ ./howler.py
usage: howler.py [-h] [-o str] STR
howler.py: error: the following arguments are required: STR
$ ./howler.py -h
usage: howler.py [-h] [-o str] STR
Howler (upper-case input)
positional arguments:
STR Input string or file
optional arguments:
-h, --help show this help message and exit
-o str, --outfile str
Output filename (default: )
$ ./howler.py 'One word: Plastics!'
ONE WORD: PLASTICS!
$ ./howler.py ../inputs/fox.txt
THE QUICK BROWN FOX JUMPS OVER THE LAZY DOG.
$ ./howler.py -o out.txt ../inputs/fox.txt
$ cat out.txt
THE QUICK BROWN FOX JUMPS OVER THE LAZY DOG.