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
My app has a config option called 'host'. When you run the program with "-h", the help is printed, which is not unexpected.
However, the following output is
const args = require('args')
.option('interval', 'How often (in seconds) to ping the device', 30, s => 1000 * s)
.option('delay', 'How long (in seconds) the device must be gone before reporting no presence', 15 * 60, s => 1000 * s)
.parse(process.argv)
Note that there are two '-h' options.
The text was updated successfully, but these errors were encountered:
Sorry, I just noticed that I put the code (and the wrong code at that) where the output should be. The output shows two "-h" options.
Obviously I want users to be able to get help. I also want them to set host names. As far as I'm concerned, whichever one the library decides would be fine, but the help output shouldn't imply it does both.
My app has a config option called 'host'. When you run the program with "-h", the help is printed, which is not unexpected.
However, the following output is
Note that there are two '-h' options.
The text was updated successfully, but these errors were encountered: