首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > 其他 > 一个命令行解析器,用C写的#

一个命令行解析器,用C写的#

资 源 简 介

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

文 件 列 表

optparse.dll
VIP VIP
0.186184s