Skip to content

Formatting help text (ends of line) #529

Open
@downwater

Description

@downwater

The command line 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 and use HelpText.RenderUsageText or HelpText.RenderUsageTextAsLines ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions