# foo/monkey_patch_dry_cli.rb
=begin
This monkey patch Dry::CLI help capability with four new
class methods added to the Command class:
global_header .. Program/Glocal context custom header/footer
global_footer ..
header ......... Command context custom header / footer
footer .........
In addition to the new commands, tail-patched call methods in the
Banner and Usage modules wrap the existing help text formatting
with the appropriate global and command level header and footer
text.
Expected usage patter is to have the global customer
header / footer help text defined in the Base command class
for an application. All other command inherent from this
Base class.
This file has been truncated. show original
If this is of interest to anyone else I will be happy to generate a PR.
2 Likes
This would be useful for me too. I was looking for the ability to add a header to the top-level help message. Descriptions seem to already be supported for subcommands so this really would just expand on that.