mirror of
https://github.com/collinsmith/riiablo.git
synced 2025-03-13 19:39:14 +07:00
Impl help message header and footer support
This commit is contained in:
parent
2ff13b8b8e
commit
c0462e4fce
@ -36,9 +36,17 @@ public class BaseTool implements ApplicationListener {
|
||||
}
|
||||
}
|
||||
|
||||
protected String getHelpHeader() {
|
||||
return null;
|
||||
}
|
||||
|
||||
protected String getHelpFooter() {
|
||||
return null;
|
||||
}
|
||||
|
||||
private void printHelp(String cmd, Options options) {
|
||||
HelpFormatter formatter = new HelpFormatter();
|
||||
formatter.printHelp(cmd, options, true);
|
||||
formatter.printHelp(cmd, getHelpHeader(), options, getHelpFooter(), true);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user