Package org.drasyl.cli.command
Class HelpCommand
- java.lang.Object
-
- org.drasyl.cli.command.HelpCommand
-
-
Field Summary
Fields Modifier and Type Field Description protected PrintStream
err
protected PrintStream
out
-
Constructor Summary
Constructors Constructor Description HelpCommand()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute(String[] args)
void
execute(org.apache.commons.cli.CommandLine cmd)
String
getDescription()
protected DrasylConfig
getDrasylConfig(org.apache.commons.cli.CommandLine cmd)
protected org.apache.commons.cli.Options
getOptions()
protected void
help(org.apache.commons.cli.CommandLine cmd)
protected void
helpTemplate(String name, String header)
protected void
helpTemplate(String name, String header, String footer)
protected void
helpTemplate(String name, String header, String footer, Map<String,String> commands)
protected Logger
log()
protected void
setLogLevel(org.apache.commons.cli.CommandLine cmd)
-
-
-
Field Detail
-
out
protected final PrintStream out
-
err
protected final PrintStream err
-
-
Method Detail
-
log
protected Logger log()
-
help
protected void help(org.apache.commons.cli.CommandLine cmd)
-
execute
public void execute(org.apache.commons.cli.CommandLine cmd)
-
getDescription
public String getDescription()
-
helpTemplate
protected void helpTemplate(String name, String header, String footer, Map<String,String> commands)
-
getOptions
protected org.apache.commons.cli.Options getOptions()
-
setLogLevel
protected void setLogLevel(org.apache.commons.cli.CommandLine cmd)
-
getDrasylConfig
protected DrasylConfig getDrasylConfig(org.apache.commons.cli.CommandLine cmd)
-
-