dotnet / dotnet/command-line-api

Odd formatting with long option descriptions being displayed

Open
#1,650 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
3.7k
Forks
428
PR merge metrics
No merged PRs in 30d

Description

Noticed there are some extra spaces (or new lines) being added with long option descriptions. Try resizing the console window.

Used the following....

```csharp
Option myOption = new(
new string[] { "--very-long-option" },
"1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890") {
ArgumentHelpName = "option",
};
```

![image](https://user-images.githubusercontent.com/2956825/154876224-d878a102-8d24-46b3-ba42-a5939077d5e0.png)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.