So I got tired of writing and rewriting the same command line user interface over and over again.
I have lots of programs that I write to be “automatable” - i.e. so that an operations team member can put it into a script and execute it, or schedule it, or batch it up.
Rather than continue rewriting this stuff over and over, I wrote a library that accomplishes universal execution automation via reflection:
You can view the code here, and drop it into your project at any time by copying and pasting this code:
It produces nice clean output and parses your variables on the command line.