commandlineparser / commandlineparser/commandline

Formatting help text (ends of line)

Đang mở
#529 21 bình luận 0 reaction 0 người được giao Xem trên GitHub
question
Ngôn ngữ chính
C#
Star
4.8k
Fork
478
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

The [command line wiki](https://github.com/commandlineparser/commandline/wiki) shows what help texts look like:

```
yourapp 2.0.201-alpha
[...]
--filename Input filename.

--help Display this help screen.

--version Display version information.
```
Each argument entry is followed by a **double end of line**. I wondered if there is a simple way to get a formatting with single eol, like this `grep` example:

```
Usage: grep [OPTION]... PATTERN [FILE]...
[...]
-E, --extended-regexp PATTERN is an extended regular expression (ERE)
-F, --fixed-strings PATTERN is a set of newline-separated strings
-G, --basic-regexp PATTERN is a basic regular expression (BRE)

```

If I undestand correctly, I'll have to implement [my own help screen](https://github.com/commandlineparser/commandline/wiki/Generating-Help-and-Usage-information#overriding-the-default-behavior) and use `HelpText.RenderUsageText` or `HelpText.RenderUsageTextAsLines` ?

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.