mirror of
https://github.com/collinsmith/riiablo.git
synced 2025-07-15 10:17:50 +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) {
|
||||
HelpFormatter formatter = new HelpFormatter();
|
||||
formatter.printHelp(cmd, options, true);
|
||||
formatter.printHelp(cmd, getHelpHeader(), options, getHelpFooter(), true);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Reference in New Issue
Block a user