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

How to customize help following change to HelpBuilder visibility

Open barrygiles opened this issue 6 months ago • 1 comments

Sorry if this is obvious, but I was wondering what the suggested migration path would look like for customized help layouts, now that the HelpBuilder is internal: https://github.com/dotnet/command-line-api/commit/8363e585244577511e5178bc441fbec7cf9c6053

https://github.com/dotnet/runtime/pull/116065 as an example extends the help layout, but I'm wondering about customizing the main layout.

I've looked at the tests, e.g. https://github.com/dotnet/command-line-api/blob/8363e585244577511e5178bc441fbec7cf9c6053/src/System.CommandLine.Tests/Help/HelpBuilderTests.Customization.cs, but these seem to have access to the internal HelpBuilder, so I don't think are much use as a guide.

So I'm a bit confused, but probably missing something obvious.

barrygiles avatar Jun 09 '25 11:06 barrygiles

I am concerned with this change as well, we depend on public HelpBuilder classes/methods to customize it in this project: https://github.com/dotmake-build/command-line But now we cannot update beyond daily build of 2.0.0-beta5.25302.104 of System.CommandLine for this reason.

calacayir avatar Jun 17 '25 14:06 calacayir