command-line-api icon indicating copy to clipboard operation
command-line-api copied to clipboard

Improve help sections layout.

Open rvuistin opened this issue 1 year ago • 0 comments

Currently, the spacing between the help sections is controlled by the mutable property “HelpContext.WasSectionSkipped”, which is also shared by section delegates. In addition, the property is internal, which makes it difficult to customize the help if you want to add a new section. I suggest to remove the HelpContext.WasSectionSkipped property and to modify the signature of the section delegate from Action<HelpContext> to Func<HelpContext, bool>. The section delegate would return false for an empty section and true otherwise.

A fix is available in pull request #2238

rvuistin avatar Jul 16 '23 16:07 rvuistin