Read args passed to your script.
process.argvis an array: [node, script, ...args]- slice off the first two:
process.argv.slice(2) - parse flags manually or with a library (yargs, commander)
process.exit(code)to end with a status
See examples/.
Build a CLI greeter that reads a --name flag.