Replies: 2 comments
-
Have you tried putting a |
Beta Was this translation helpful? Give feedback.
0 replies
-
Yeah, tried a “\n”… just printed a raw “\n” in the text.
Even tried defining a separate var (as “\n”) to interpolate into the help text… that inserted an actual new line, but made the help wrap super wonky unfortunately.
When I get back to my desk, I’ll try aliasing a type, and put a new line into the Help() method on that alias.
Kong is literally the best CLI package for Go by the way, thanks for putting in the time to make this.
V/r
Jacob Hochstetler
…________________________________
From: Alec Thomas ***@***.***>
Sent: Friday, March 25, 2022 10:20:06 PM
To: alecthomas/kong ***@***.***>
Cc: Jacob Hochstetler ***@***.***>; Author ***@***.***>
Subject: Re: [alecthomas/kong] Multiline help output possible? (Discussion #287)
Have you tried putting a \n in the help string? That would still make for an incredibly unwieldy tag though.
—
Reply to this email directly, view it on GitHub<#287 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AAN5QHIPLTMLOXN4GY4SGKDVBZ66NANCNFSM5RVEBYSQ>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I searched through the code how the help text is populated for an arg, but didn't really see anyway to have a multiline output, e.g.:
Anyone have any tricks to accomplish this?
Beta Was this translation helpful? Give feedback.
All reactions