Quantcast
Channel: User user2297996 - Stack Overflow
Viewing all articles
Browse latest Browse all 39

How to make Yargs display examples in command specific "help"?

$
0
0

Typing -h prints normal help and I can add examples using the .example() API.

However, this is not printed when displaying help for a command:

myApp foobar -hormyApp foobar help

I would like to print examples for the command "foobar" specifically, and not for the app in general. How can I do that?


Viewing all articles
Browse latest Browse all 39

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>