Name: js-handler/node_modules/optimist/example/usage-options.js
| 1: | var optimist = require('./../index'); |
| 2: | |
| 3: | var argv = optimist.usage('This is my awesome program', { |
| 4: | 'about': { |
| 5: | description: 'Provide some details about the author of this program', |
| 6: | required: true, |
| 7: | short: 'a', |
| 8: | }, |
| 9: | 'info': { |
| 10: | description: 'Provide some information about the node.js agains!!!!!!', |
| 11: | boolean: true, |
| 12: | short: 'i' |
| 13: | } |
| 14: | }).argv; |
| 15: | |
| 16: | optimist.showHelp(); |
| 17: | |
| 18: | console.log('\n\nInspecting options'); |
| 19: | console.dir(argv); |
