资 源 简 介
CHANGES
2012-10-12
fix bugs:
当程序启动未加任何参数时候调用OptionParser.Parse()时,在OptionParser.Parse(string cmdline)中会抛出一个异常 ArgValueParseException The option value must match a option name.
未加任何参数时候 OptionParser.SkipWhiteSpace() 会有个索引超出范围的异常
Thanks kewell.tsao@gmail.com
Get Started
Create OptionParser
class OptionParser requires two arguments, the first is usage string, which support several tokens, they are title, product, description, copyright, version and company. they are starting with % sign. and these tokens map to AssemblyTitle, AssemblyProduct, AssemblyDescription, AssemblyCopyright, AssemblyVersion and AssemblyCompany which declare in AssemblyInfo.cs file.
OptionParser parser = new OptionParser("%title -- %description
%copyright
%product(%version)
Usage:console.exe [OPTIONS]", "1.3.3");
Define the arguments.
The types o