Skip to content

Instantly share code, notes, and snippets.

@john-osullivan
Created November 6, 2019 21:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save john-osullivan/8bc45d4afc1ab7045ffef9212208a4a9 to your computer and use it in GitHub Desktop.
Save john-osullivan/8bc45d4afc1ab7045ffef9212208a4a9 to your computer and use it in GitHub Desktop.
Dev Diaries #3 - yargs module for cmd config
export const command = 'lorem <arg1> <arg2>';
export const desc = 'This cmd description is ipsum';
export function builder(yargs) {
// Add addt'l command configuration
}
export function handler(argv) {
// Use parsed argv to perform any actions desired
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment