Great! As someone who uses pipes extensively in scripts, I feel that fileinput is underappreciated in the Python world. Argparse+fileinput is a great combo.
I know, I just discovered it. When I'm writing Ruby scripts, I really love having the ARGF. fileinput is basically Python's version of that, and it makes me happy.
BTW, argparse is going to be featured in Part 2!
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.