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
Expose a method to show the help string whenever I want to, like it being the default command of my program.
Program would be something like:
program.version(package.version).action(()=>program.showHelp()).command('real command').action((args,options,logger)=>/* do stuff */);program.parse(process.argv);// ./myprog/* ... prints help ... */
I managed to print the help text using the private _help function, but as it's private and not documented, I believe it's not good to stick to it.
The text was updated successfully, but these errors were encountered:
Expose a method to show the help string whenever I want to, like it being the default command of my program.
Program would be something like:
I managed to print the help text using the private
_help
function, but as it's private and not documented, I believe it's not good to stick to it.The text was updated successfully, but these errors were encountered: