We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 759e1bf commit cf7a861Copy full SHA for cf7a861
src/System.CommandLine/CommandLineConfiguration.cs
@@ -55,7 +55,7 @@ public CommandLineConfiguration(
55
internal static HelpBuilder DefaultHelpBuilderFactory(BindingContext context, int? requestedMaxWidth = null)
56
{
57
int maxWidth = requestedMaxWidth ?? int.MaxValue;
58
- if (context.Console is SystemConsole systemConsole)
+ if (requestedMaxWidth is null && context.Console is SystemConsole systemConsole)
59
60
maxWidth = systemConsole.GetWindowWidth();
61
}
0 commit comments