- java.lang.Object
-
- swim.args.Cmd
-
-
Constructor Summary
Constructors Constructor Description Cmd(String id, String name, String desc, FingerTrieSeq<Opt> opts, FingerTrieSeq<Arg> args, FingerTrieSeq<Cmd> cmds, ExecCmd exec, Cmd base)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Cmd
arg(String arg)
Cmd
arg(Arg arg)
FingerTrieSeq<Arg>
args()
Cmd
base()
boolean
canEqual(Object other)
Cmd
clone()
Cmd
cmd(String cmd)
Cmd
cmd(Cmd cmd)
FingerTrieSeq<Cmd>
cmds()
static Cmd
create(String id)
static Cmd
create(String id, String name)
<T> Output<T>
debug(Output<T> output)
Writes a developer readable, debug-formatted string representation of this object tooutput
.String
desc()
Cmd
desc(String desc)
boolean
equals(Object other)
ExecCmd
exec()
Cmd
exec(ExecCmd exec)
Arg
getArg()
Arg
getArg(int index)
Opt
getOpt(String name)
String
getValue()
String
getValue(int index)
int
hashCode()
static Cmd
help()
Cmd
helpCmd()
String
id()
String
name()
Cmd
opt(String opt)
Cmd
opt(Opt opt)
FingerTrieSeq<Opt>
opts()
Cmd
parse(String[] params)
Cmd
parse(String[] params, int paramIndex)
void
run()
String
toHelp()
String
toString()
<T> Output<T>
writeFullName(Output<T> output)
<T> Output<T>
writeHelp(Output<T> output)
-
-
-
Constructor Detail
-
Cmd
public Cmd(String id, String name, String desc, FingerTrieSeq<Opt> opts, FingerTrieSeq<Arg> args, FingerTrieSeq<Cmd> cmds, ExecCmd exec, Cmd base)
-
-
Method Detail
-
base
public Cmd base()
-
id
public String id()
-
name
public String name()
-
desc
public String desc()
-
opts
public FingerTrieSeq<Opt> opts()
-
args
public FingerTrieSeq<Arg> args()
-
cmds
public FingerTrieSeq<Cmd> cmds()
-
getArg
public Arg getArg()
-
getArg
public Arg getArg(int index)
-
getValue
public String getValue()
-
getValue
public String getValue(int index)
-
exec
public ExecCmd exec()
-
run
public void run()
-
helpCmd
public Cmd helpCmd()
-
toHelp
public String toHelp()
-
canEqual
public boolean canEqual(Object other)
-
debug
public <T> Output<T> debug(Output<T> output)
Description copied from interface:Debug
Writes a developer readable, debug-formatted string representation of this object tooutput
.
-
help
public static Cmd help()
-
-