upgrade cli to 1.0.2 to support case sensitive options. close #322

This commit is contained in:
hengyunabc
2018-11-27 20:42:20 +08:00
parent 2a90a7f5b3
commit 41936aed83
2 changed files with 2 additions and 2 deletions
@@ -23,7 +23,7 @@ public class AnnotatedCommandImpl extends Command {
public AnnotatedCommandImpl(Class<? extends AnnotatedCommand> clazz) {
this.clazz = clazz;
cli = CLIConfigurator.define(clazz);
cli = CLIConfigurator.define(clazz, true);
cli.addOption(new Option().setArgName("help").setFlag(true).setShortName("h").setLongName("help")
.setDescription("this help").setHelp(true));
}
+1 -1
View File
@@ -92,7 +92,7 @@
<dependency>
<groupId>com.alibaba.middleware</groupId>
<artifactId>cli</artifactId>
<version>1.0.1</version>
<version>1.0.2</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>