Skip to content

Commit

Permalink
Improves Help command.
Browse files Browse the repository at this point in the history
  • Loading branch information
ivangsa committed Mar 28, 2023
1 parent ee58a2c commit 99776d6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 74 deletions.
9 changes: 2 additions & 7 deletions zenwave-sdk-cli/src/main/java/io/zenwave360/sdk/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@ public class Main implements Callable<Integer> {
@Option(names = {"-p", "--plugin"}, arity = "0..1", description = "Plugin Class or short-code")
String pluginClass;

@Option(names = {"-c", "--chain"}, split = ",", description = "<undocumented> use --plugin instead", hidden = true)
Class[] chain;

@Option(names = {"-f", "--force"}, description = "Force overwrite", defaultValue = "false")
boolean forceOverwrite = false;

Expand Down Expand Up @@ -68,8 +65,7 @@ public Integer call() throws Exception {
.withSpecFile((String) options.get("specFile"))
.withTargetFolder((String) options.get("targetFolder"))
.withForceOverwrite(forceOverwrite)
.withOptions(options)
.withChain(chain);
.withOptions(options);
new MainGenerator().generate(plugin);
return 0;
}
Expand All @@ -79,8 +75,7 @@ public void help() {
Plugin plugin = Plugin.of(this.pluginClass)
.withSpecFile((String) options.get("specFile"))
.withTargetFolder((String) options.get("targetFolder"))
.withOptions(options)
.withChain(chain);
.withOptions(options);
String help = new Help().help(plugin, helpFormat);
System.out.println(help);
} catch (Exception e) {
Expand Down
67 changes: 0 additions & 67 deletions zenwave-sdk-cli/src/test/java/io/zenwave360/sdk/MainTest.java

This file was deleted.

0 comments on commit 99776d6

Please sign in to comment.