Impl help message header and footer support

This commit is contained in:
Collin Smith 2020-11-24 12:08:18 -08:00
parent 2ff13b8b8e
commit c0462e4fce

View File

@ -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