Forget fancy shmancy web stuff. I'm looking for a good .NET CLI argument processing utility, prefer open source code. This is for quick and dirty utilities that need robust and friendly command line argument handling.
These are utilities with maybe a day of effort in them. Investing a few days writing good command line handling seems overkill ... but they really need it.
Features I like in command line handlers. I'd be thrilled with any open source project that had 2 or 3 of the following.
- A consistent syntax, posix had a nice command line standard, but not necessarily posix.
- Ability to provide short names for agruments. E.g. "msbuild /t" == "msbuild /target"
- It supports good command line parsing then gets out of the way. I want some that my code uses, not something that imposes a pattern on my code e.g. I don't want to have to respond to the presence of an arg with an event, that type of thing.
- Seperation of concerns is good enough that it's logic can be unit tested.
- Oh - is it two much to ask for it to read attributes off a class properties (as in .NET configuration classes)?
- I like the config file overrides in msbuild. I can set properties in a build file, but override on the command line.
- Built in "show usage". WSF files (csript.exe) have this functionality. I'm not willing to write jscript to get the command line handling though.
- Not powershell. I can't find anyone in my company who can stand Powershell syntax.
PS If I don't find such a thing, I'll probably drop one on google code in the next few weeks
PPS If I could add tags, I'd tag this "pleasesearchtheinternetforme"