-
Notifications
You must be signed in to change notification settings - Fork 991
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
actively calling showHelp shows different output then help on fail does #1853
Comments
@foxriver76 in the version of yargs on Could you try this out, and see if it gives you appropriate output? my hope was that this would make the use case of outputting help programmatically easier. I did also fix some bugs with |
Hey, thanks for your reply. I've installed const test = await yargs.getHelp();
console.log(test); is printing the output w/o the desired |
@foxriver76 could you please try |
Sorry for the delayed reply, unfortunately, the inconsistencies remain the same. |
For me this is not fixed as stated, however I am unable to reopen. @bcoe |
In our code we use commands and "subcommands", calling our tool via
iobroker object
will result in our code processing the command and then callingyargs.showHelp()
, the generated output looks like:I would expect, that it shows
iobroker object get <id>
and notiobroker get <id>
as it is done when I calliobroker object --help
:Why is there a difference, is this intended? If yes, how can I achieve the desired output via
showHelp()
?You can find the relevant code here: https://github.com/ioBroker/ioBroker.js-controller/blob/12a235299be58d7bb4592d71d61478afe9f1797b/lib/setup.js#L34-L370
The text was updated successfully, but these errors were encountered: