mirror of
https://github.com/collinsmith/riiablo.git
synced 2025-07-20 20:58:16 +07:00
Impl help message header and footer support
This commit is contained in:
@ -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) {
|
private void printHelp(String cmd, Options options) {
|
||||||
HelpFormatter formatter = new HelpFormatter();
|
HelpFormatter formatter = new HelpFormatter();
|
||||||
formatter.printHelp(cmd, options, true);
|
formatter.printHelp(cmd, getHelpHeader(), options, getHelpFooter(), true);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Reference in New Issue
Block a user