Programming Analytics

A feed of interesting tidbits from IT, software engineering, business intelligence, and videogaming.

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:

http://code.google.com/p/csharp-command-line-wrapper/

You can view the code here, and drop it into your project at any time by copying and pasting this code:

http://code.google.com/p/csharp-command-line-wrapper/source/browse/trunk/CommandWrapper/CommandWrapLib/CommandWrapLib.cs

It produces nice clean output and parses your variables on the command line.