Fixing DisplayWidth for newer Mono#279
Merged
ericnewton76 merged 1 commit intocommandlineparser:developfrom May 11, 2018
Merged
Fixing DisplayWidth for newer Mono#279ericnewton76 merged 1 commit intocommandlineparser:developfrom
ericnewton76 merged 1 commit intocommandlineparser:developfrom
Conversation
…r non-Windows environments, but this is not true in more recent versions of Mono (returns 0 instead). This change will cause it to default to DefaultMaximumLength in the event that Console.WindowWidth returns 0.
Author
|
I'm fairly certain this fixes #277. The issue I was seeing and the issue described are extremely similar. |
Author
|
@ericnewton76 Any ETA for when 2.3.0 is getting released? I have a project that would benefit from it. |
|
Hi, we are consuming this package as it is a great multiplat option, however, we have been affected by this bug when running inside a Linux container, I think this PR would address our issues and would like to know if there is any ETA to ship it, as 2.3.0 came and go without it. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ParserSettings and HelpText assume that Console.WindowWidth throws for non-Windows environments, but this is not true in more recent versions of Mono (returns 0 instead). This change will cause it to default to DefaultMaximumLength in the event that Console.WindowWidth returns 0.