commander-to-markdown
Version:
Render the options of a commander app as markdown
10 lines (8 loc) • 325 B
JavaScript
const program = require('commander');
program
.arguments('<address>', 'Address for delivery')
.option('-p, --peppers', 'Add peppers')
.option('-P, --pineapple', 'Add pineapple')
.option('-b, --bbq-sauce', 'Add bbq sauce')
.option('-c, --cheese [type]', 'Pick the type of cheese', 'marble')
.parse(process.argv);