本文整理了Java中org.crsh.cli.Option
类的一些代码示例,展示了Option
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Option
类的具体详情如下:
包路径:org.crsh.cli.Option
类名称:Option
暂无
代码示例来源:origin: crashub/crash
public class D1 {
@Option(names = "h") boolean help;
@Command
public String sub() {
return "my help " + help;
}
}
代码示例来源:origin: crashub/crash
binding,
ParameterType.create(valueTypeFactory, type),
Collections.unmodifiableList(Arrays.asList(optionAnn.names())),
info,
required,
false,
optionAnn.unquote(),
optionAnn.completer(),
ann);
} else {
代码示例来源:origin: org.crsh/crsh.cli
required,
false,
argumentAnn.unquote(),
argumentAnn.completer(),
ann);
} else if (optionAnn != null) {
binding,
ParameterType.create(valueTypeFactory, type),
Collections.unmodifiableList(Arrays.asList(optionAnn.names())),
info,
required,
false,
optionAnn.unquote(),
optionAnn.completer(),
ann);
} else {
代码示例来源:origin: crashub/crash
public class D2 {
@Option(names = "help") boolean help;
@Command
public String sub() {
return "my help " + help;
}
}
代码示例来源:origin: org.crashub/crash.cli
required,
false,
argumentAnn.unquote(),
argumentAnn.completer(),
ann);
} else if (optionAnn != null) {
binding,
ParameterType.create(valueTypeFactory, type),
Collections.unmodifiableList(Arrays.asList(optionAnn.names())),
info,
required,
false,
optionAnn.unquote(),
optionAnn.completer(),
ann);
} else {
代码示例来源:origin: crashub/crash
public class B3 {
@Option(names = "h") boolean help;
@Command
public String main() {
return "my help " + help;
}
}
代码示例来源:origin: crashub/crash
public class OptionSyntaxException {
@Option(names = "o")
int option;
@Command
public void main() {
}
}
代码示例来源:origin: crashub/crash
public class B4 {
@Option(names = "help") boolean help;
@Command
public String main() {
return "my help " + help;
}
}
代码示例来源:origin: crashub/crash
public static class K {
@Option(names = "o")
String opt;
@Command
public void cmd() {}
}
代码示例来源:origin: crashub/crash
public class A {
@Option(names = {"f", "foo"}) String foo;
@Command
public String bar() {
return "invoked:" + foo;
}
}
代码示例来源:origin: crashub/crash
public static class ClassOptionBindingSubordinate extends BaseCommand {
/** . */
public static String opt;
@Option(names = "o")
public String option;
public ClassOptionBindingSubordinate() {
System.out.println("zeezf");
}
@Command
public void sub() {
opt = option;
}
}
代码示例来源:origin: crashub/crash
public static class A {
@Option(names = "s")
String s;
@Command
public void m(@Option(names = "o") String o, @Argument String a) {
this.o = o;
this.a = a;
}
String o;
String a;
@Command
public void dummy() {}
}
代码示例来源:origin: crashub/crash
public static class ClassOptionBinding extends BaseCommand {
/** . */
public static String opt;
@Option(names = "o")
public String option;
public ClassOptionBinding() {
System.out.println("zeezf");
}
@Command
public void main() {
opt = option;
}
}
代码示例来源:origin: crashub/crash
public class SCPAction implements Runnable {
@Option(names="r")
private Boolean recursive;
@Option(names="v")
private Boolean verbose;
@Option(names="p")
private Boolean preserve;
@Option(names="f")
private Boolean source;
@Option(names="t")
private Boolean sink;
@Option(names="d")
private Boolean directory;
代码示例来源:origin: crashub/crash
@Command
public String sub(@Option(names = "h") boolean help) {
return "my help " + help;
}
}
代码示例来源:origin: crashub/crash
@Command
public void b(@Option(names = "o") int i) {
this.i = i;
}
}
代码示例来源:origin: crashub/crash
@Command
public String main(@Option(names = "help") boolean help) {
return "my help " + help;
}
}
代码示例来源:origin: crashub/crash
@Command
public String sub(@Option(names = "help") boolean help) {
return "my help " + help;
}
}
代码示例来源:origin: crashub/crash
@Command
public void a(@Option(names = "o", unquote = false) String i) {
this.i = i;
}
}
代码示例来源:origin: crashub/crash
@Command
public String main(@Option(names = "h") boolean help) {
return "my help " + help;
}
}
内容来源于网络,如有侵权,请联系作者删除!