The Apache Commons CLI library provides an API for parsing command line options passed to programs. It's also able to print help messages detailing the options available for a command line tool. Apache Commons CLI库提供了一批API,用来解析以命令行形式传递给程序的参数.同事,也可以用来…
Usage Scenarios The following sections describe some example scenarios on how to use CLI in applications. Using a boolean option A boolean option is represented on a command line by the presence of the option, i.e. if the option is found then the opt…
Option Properties The following are the properties that each Option has. All of these can be set using the accessors or using the methods defined in the OptionBuilder. Name Type Description opt java.lang.String the identification string of the Option…