Skip to content

Clap custom help text #5380

Answered by epage
Spatenheinz asked this question in Q&A
Discussion options

You must be logged in to vote

In the Commands::help_template is it possible to make
underlining of words such as done for the default tags like: {usage-heading}?

help_template accepts a StyledStr. This means you can use ANSI escape codes to style it as much as you want.

Is it possible to flatten or inline optional arguments, so they are show like:

Not at this time.

The collapsing is done to prevent problems like

usage: git [--version] [--help] [-C <path>] [-c <name>=<value>]
           [--exec-path[=<path>]] [--html-path] [--man-path] [--info-path]
           [-p | --paginate | -P | --no-pager] [--no-replace-objects] [--bare]
           [--git-dir=<path>] [--work-tree=<path>] [--namespace=<name>]
           [--sup…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Spatenheinz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants