mirror of
https://github.com/thangisme/notes.git
synced 2025-09-25 04:34:20 -04:00
Initial commit
This commit is contained in:
19
node_modules/yargs/example/usage-options.js
generated
vendored
Normal file
19
node_modules/yargs/example/usage-options.js
generated
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
var yargs = require('yargs');
|
||||
|
||||
var argv = yargs.usage('This is my awesome program', {
|
||||
'about': {
|
||||
description: 'Provide some details about the author of this program',
|
||||
required: true,
|
||||
alias: 'a',
|
||||
},
|
||||
'info': {
|
||||
description: 'Provide some information about the node.js agains!!!!!!',
|
||||
boolean: true,
|
||||
alias: 'i'
|
||||
}
|
||||
}).argv;
|
||||
|
||||
yargs.showHelp();
|
||||
|
||||
console.log('\n\nInspecting options');
|
||||
console.dir(argv);
|
Reference in New Issue
Block a user