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

您现在的位置是:虫虫源码 > Java > 类定义和分析参数的命令行和返回合并的结果

类定义和分析参数的命令行和返回合并的结果

资 源 简 介

parse-cmd ParseCmd.java is a Java-class used to define and parse command-line parameters in a Java application. See ParseParms.scala for an equivalent implementation using Scala It facilitates the definition of parameters, each including the following values: * name * default value * regular-expression used for validation * error/help information * flag to indicate whether the named parameter is required; defaults to optional Here is a sample statement defining a required parameter, req(), named "-ifile", with a default value of "input.txt", and including a message should validation fail, msg(" ... ") .parm("-ifile", "input.txt").req().msg("enter a valid file name") Why Several Java-based command-line parsing solutions are available

相 关 资 源

您 可 能 感 兴 趣 的

同 类 别 推 荐

VIP VIP