Skip to content

Instantly share code, notes, and snippets.

@john-osullivan
Created November 6, 2019 21:27
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/456ff29d579bc8afced59640cd6b78fd to your computer and use it in GitHub Desktop.
Save john-osullivan/456ff29d579bc8afced59640cd6b78fd to your computer and use it in GitHub Desktop.
Dev Diaries #3 - yargs.command()
yargs.command(
'lorem <arg1> <arg2>',
'This cmd description is ipsum.',
function(yargs) {
// Builder: Perform addt'l command configuration
},
function(argv) {
// Handler: When user correctly calls this cmd, this fxn will receive the parsed opstring
}
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment