mirror of
https://github.com/alibaba/arthas.git
synced 2024-04-21 10:21:39 +00:00
upgrade cli to 1.0.2 to support case sensitive options. close #322
This commit is contained in:
+1
-1
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user