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 application accepts no commands, but has options. The setup looks like this
constargs=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)
However, when I run the app with --help, the output looks like this
[chris:~/device-presence] master(+6/-1) ± node index.js --help
Usage: index.js [options] [command]
Commands:
help Display help
Options:
-d, --delay <n> How long (in seconds) the device must be gone before reporting no presence
-h, --help Output usage information
-i, --interval <n> How often (in seconds) to ping the device
-v, --version Output the version number
Since my application does not use commands, it would be nice if the usage section did not imply that it did.
The text was updated successfully, but these errors were encountered:
My application accepts no commands, but has options. The setup looks like this
However, when I run the app with --help, the output looks like this
Since my application does not use commands, it would be nice if the usage section did not imply that it did.
The text was updated successfully, but these errors were encountered: