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
#!/usr/bin/env node
const args = require('args')
args
.option('port', 'The port on which the app will be running', 3000)
.option('reload', 'Enable/disable livereloading')
.command('serve', 'Serve your static site', ['s'])
const flags = args.parse(process.argv)
node app serve
The text was updated successfully, but these errors were encountered:
Pretty late for the party, but with hope that it will help others.
If you want the command to execute some method, you can also pass this init object in the options:
args
.option("channelId", "The channel ID the threads will be fetched from")
.command(
"fetch",
"Fetch threads from a given channelId",
() => {
console.log("I was used!");
},
["f"]
);
I am not sure that is bug.
example script:
node app serve
The text was updated successfully, but these errors were encountered: