How to use the requiredOption function from commander
Find comprehensive JavaScript commander.requiredOption code examples handpicked from public code repositorys.
GitHub: railsware/github-actions
49 50 51 52 53 54 55 56 57 58
Object.keys(config.inputs).forEach(function (name) { const input = config.inputs[name] if (input.required) { commander.requiredOption(`--${name} <type>`, input.description) } else { commander.option(`--${name} <type>`, input.description) } })
2
5
21
commander.Option is the most popular function in commander (1786 examples)