Skip to content

Instantly share code, notes, and snippets.

Created May 30, 2021 12:33
What would you like to do?
async handler(argv, {console, describe, options, style}) {
// Print command description
// Prompt user for option or use default
const value = await console.cli.require(options.val);
// Print 'value' with style and color
console.log('value:', style.bold.cyan(value), style.gray(argv.val));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment