Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

properly handle '\n' in argument help messages #145

Closed
kbknapp opened this issue Jul 6, 2015 · 1 comment
Closed

properly handle '\n' in argument help messages #145

kbknapp opened this issue Jul 6, 2015 · 1 comment
Labels
A-help Area: documentation, including docs.rs, readme, examples, etc... C-enhancement Category: Raise on the bar on expectations
Milestone

Comments

@kbknapp
Copy link
Member

kbknapp commented Jul 6, 2015

\n should be translated to \n\t\t\t or whatever number of tabs need to be used so as to properly align with the preceding line.

@kbknapp kbknapp added the C-enhancement Category: Raise on the bar on expectations label Jul 6, 2015
@kbknapp kbknapp added this to the v1.1 milestone Jul 6, 2015
@kbknapp kbknapp added P2: need to have A-help Area: documentation, including docs.rs, readme, examples, etc... labels Jul 15, 2015
@kbknapp
Copy link
Member Author

kbknapp commented Jul 16, 2015

This is implemented via #160

Note that if you want a newline in your help string, use {n} and not \n

i.e.

.arg_from_usage("<some_arg> 'this is a really long help string that{n}I would like to have broken over two lines'")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-help Area: documentation, including docs.rs, readme, examples, etc... C-enhancement Category: Raise on the bar on expectations
Projects
None yet
Development

No branches or pull requests

1 participant