Subscribe to our RSS Feeds

【C#】一个命令行参数解释器

0 Comments »
测试效果:
E:\Desktop>c -arg1 test1 -arg2 test2 param "quotes support"
Command Line Arguments:
   arg1 = test1
   arg2 = test2

Command Line Parameters:
    param
    quotes support


支持各类参数样式,如“-”、“/”等,支持开关和参数共同使用。

代码下载地址:
范例&代码:http://www.uushare.com/user/snow518no2/file/811139
代码:http://www.uushare.com/user/snow518no2/file/811140

转自:
http://www.codeproject.com/KB/cs/CommandLineParser.aspx
, , 9/20/2008 02:35:00 下午

0 Responses to "【C#】一个命令行参数解释器"

发表评论

With Blue Snow Studio, Nothing is impossible.