Home
Releases
Discussions
Issue Tracker
Source Code
Stats
People
License
RSS RSS Feed
Search Wiki:
Project Description
This is a small strongly typed command line parser for C# applications.

This is a class written in C# that gives you a strongly typed interface to work with command line parameters. Here is a quick example:

Source code:
CmdLine1.PNG

Result:
Skärmklipp5.PNG



Last edited Jul 8 at 4:50 PM  by KalleLundberg, version 6
Comments
tihobrazov wrote  Sep 8 at 5:28 PM  
NConsoler is an open source library that provides command line parser functionality based on attribute metadata attached to type.
Library is very easy to add and use in your application. NConsoler gives an ability to display help and validation messages without any line of code.

http://nconsoler.csharpus.com/

Example code:

using System;
using NConsoler;

public class Program {
public static void Main(params string[] args) {
Consolery.Run(typeof(Program), args);
}

[Action]
public static void Method(
[Required] string name,
[Optional(true)] bool flag) {
Console.WriteLine("name: {0}, flag: {1}", name, flag);
}
}

and use it:

program.exe "Maxim" /-flag

Updating...