question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Formatting help text (ends of line)

See original GitHub issue

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 ?

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:21 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
leoformaggicommented, Dec 13, 2019

You need not to use Rendering methods, only configure HelpText and set:

       AdditionalNewLineAfterOption=false

Wiki is updated to include new page: HelpText Configuration for generating custom help with examples that you can run online. Custom helpExample: Try it online

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.

0reactions
moh-hassancommented, Mar 18, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found