How to use the mac function from commander
Find comprehensive JavaScript commander.mac code examples handpicked from public code repositorys.
GitHub: firewalla/firewalla
![firewalla profile picture](/firewalla.png?size=40)
22 23 24 25 26 27 28 29 30 31
.option('--mac [mac]', 'mac address') .option('--filter [filter]', 'filter on host') program.parse(process.argv) const mac = program.mac if(!mac) { process.exit(1) }
commander.Option is the most popular function in commander (1786 examples)