You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While reading the yarg docs I stumbled upon the .epilogue() function.
It's really useful, but how would I print text (like some fancy ascii-arts) before the help appears?
I thought of something like .prologue()/.prolog() or .intro() but found nothing.
Thanks in advance!
The text was updated successfully, but these errors were encountered:
ghost
changed the title
How to print text before the help appears? [Opposite of .epilogue()]
Print text before the help appears [Opposite of .epilogue()]
Feb 22, 2016
@sn0w Try the .usage() method if you want the text to be part of the help content (but displayed first).
If you don't want the text to be part of the help content, then you can just console.log('any text here') before you access yargs.argv (which parses the command line args and prints help/error content if necessary).
Let us know if this doesn't suit your needs. Thanks!
Hi! 😃
While reading the yarg docs I stumbled upon the .epilogue() function.
It's really useful, but how would I print text (like some fancy ascii-arts) before the help appears?
I thought of something like
.prologue()
/.prolog()
or.intro()
but found nothing.Thanks in advance!
The text was updated successfully, but these errors were encountered: