Skip to content

When an explicit max width is specified don't override with the terminal's width #1864

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 3, 2022

Conversation

Keboo
Copy link
Member

@Keboo Keboo commented Oct 3, 2022

Previously when outputting the system console it would override the requested maxWidth.
This change respects the requested max width when it is specified using the CommandLineBuilder.

var parser = new CommandLineBuilder(command)
                .UseHelp(maxWidth: 30)
                .UseDefaults()
                .Build();

@jonsequitur jonsequitur merged commit cf7a861 into dotnet:main Oct 3, 2022
@Keboo Keboo deleted the fixHelpMaxWidth branch January 31, 2024 23:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants