.NET 4 Will Not Have a Command Line Parser
Command line parsing was the first task performed by most applications back in the 80’s and even today it is very important. Yet after all these years there isn’t a standard parser available .NET, leaving developers to reinvent this common pattern over and over again.
In the current CTP, it appeared as thought .NET 4 would include a command line parser. We were going to report on this and the comparison to Mono’s API for the same task, but it turns out it was mistakenly released.
We are not shipping System.Shell.CommandLine in .NET 4. This was based on an intern project from a couple of years back that was mistakenly public in the .NET Framework 4.0 CTP. It wasn't a design that we were happy with and has been removed and will not be present in the next preview release.
We have a *much better* command line parsing API, along the lines of Mono.Options, that we're planning to release on CodePlex later this year.
.
Isn't that true of any engineering task?
by
peter lin
NConsoler - command line parser
by
Maxm Tihobrazov
public static void Main(string[] args) {
Consolery.Run(typeof(Program), args);
}
[Action]
public static void DoWork(
[Required] string name,
[Optional(-1)] int count) {
// ...
}
C:\>program.exe Administrator /count:10
Educational Content
Intro to CLP with core.logic
Ryan Senior Jun 18, 2013
Spock: A Highly Logical Way To Test
Howard Lewis Ship Jun 18, 2013
Java Garbage Collection Distilled
Martin Thompson Jun 17, 2013
C++11 The Future is Here
Bjarne Stroustrup Jun 16, 2013
The Big Data Revolution
Claudia Perlich Jun 16, 2013




Hello stranger!
You need to Register an InfoQ account or Login to post comments. But there's so much more behind being registered.Get the most out of the InfoQ experience.
Tell us what you think