Remove uses of "--" as constant prefix

Code now uses the prefixForMethod(...)
added sample usage of prefix in a @ShellMethod
This commit is contained in:
camilojc
2017-06-18 20:56:36 +01:00
committed by Eric Bottard
parent 8398b140ae
commit 7fd5390c29
4 changed files with 27 additions and 8 deletions

View File

@@ -44,8 +44,13 @@ public class Commands {
}
@ShellMethod(help = "it's cool")
public void foo(String bar) {
public String foo(String bar) {
return bar;
}
@ShellMethod(help = "it's cool with a prefix", prefix = "-")
public String fooPrefix(String bar) {
return bar;
}
@ShellMethod(help = "Shows support for boolean parameters, with arity=0")