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

20 Views Asked by At

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 -h
or
myApp 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?

0

There are 0 best solutions below