Formatting help text (ends of line)
See original GitHub issueThe 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
?
Issue Analytics
- State:
- Created 4 years ago
- Comments:21 (1 by maintainers)
Top Results From Across the Web
Add and format text
Format text. Select the text you want to format. To select a single word, double-click it. To select a line of text, click...
Read more >Allow line breaks in help text/tooltips - IdeaExchange
I tried using the suggestions above to add spaces but I'm hitting the character limit. I've added * to indicate the beginning and...
Read more >Word: Line and Paragraph Spacing
To format line spacing: ; Select the text you want to format. selecting paragraphs in a letter ; On the Home tab, click...
Read more >Text - Paragraphs, Lines, and Phrases
Forcing a line break: the BR element ... The BR element forcibly breaks (ends) the current line of text. For visual user agents,...
Read more >Format text from a character or word to the end of the line
I'm trying to modify it so that it's only formatted from the text "//" to the end of the line. (including "//"). So...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Is there a way to cut the empty lines from Default parser? Using the HelpText it works, but there’s a different behavior. I am using a method for parsing subverbs, which works fine. If I use a single --help with Default parser, it shows the available verbs. But if I use HelpText.AutoBuild() setting AdditionalNewLineAfterOption = false, the single --help command won’t show the available verbs.
Thanks @NeilMacMullen for reply and suggestions. I appreciate your time and I will investigate your suggestions including the other possible things that may be the cause and feedback the result.