C# Command Line Parser (CmdLine)
CodePlex Home
Register
|
Sign In
|
CodePlex Home
Home
Releases
Discussions
Issue Tracker
Source Code
Stats
People
License
Close
RSS
All Project Updates
Discussions
Issue Tracker
Releases
Source Code
Wiki
RSS
Comments
|
Print View
|
Page Info
|
Change History (all pages)
Search Wiki:
Home
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:
Result:
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
Sign in to add a comment
Downloads
Current release:
Second release
Tue Jul 8 2008 at 7:00 AM
89 downloads
More info
Activity
7
30
All
days
Page Views
110
Visits
57
Pages Per Visit
1.93
Work Items Closed
0
Discussion Posts
0
© 2006-2008 Microsoft
|
Privacy Statement
|
Terms of Use
|
Code of Conduct
|
CodePlex Blog
|
Version 2008.9.23.13635
Updating...