Skip to content

Commit 9315483

Browse files
Keboojonsequitur
authored andcommitted
Expose IHelpBuilder via the InvocationContext
1 parent 27d86d3 commit 9315483

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/System.CommandLine/Invocation/InvocationContext.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
33

44
using System.CommandLine.Binding;
5+
using System.CommandLine.Help;
56
using System.CommandLine.Parsing;
67
using System.Threading;
78

@@ -27,6 +28,8 @@ public InvocationContext(
2728

2829
public Parser Parser => BindingContext.ParseResult.Parser;
2930

31+
public IHelpBuilder HelpBuilder => Parser.Configuration.HelpBuilderFactory(BindingContext);
32+
3033
public Resources Resources => Parser.Configuration.Resources;
3134

3235
public ParseResult ParseResult

0 commit comments

Comments
 (0)