Sha256: 63e9b9be0726f4af797961acb28d199cb6a6a9765d16573d9ba7f82dd57d0355

Contents?: true

Size: 440 Bytes

Versions: 356

Compression:

Stored size: 440 Bytes

Contents

var optimist = require('./../index');

var argv = optimist.usage('This is my awesome program', {
  'about': {
    description: 'Provide some details about the author of this program',
    required: true,
    short: 'a',
  },
  'info': {
    description: 'Provide some information about the node.js agains!!!!!!',
    boolean: true,
    short: 'i'
  }
}).argv;

optimist.showHelp();

console.log('\n\nInspecting options');
console.dir(argv);

Version data entries

356 entries across 211 versions & 18 rubygems

Version Path
clapton-0.0.6 lib/clapton/javascripts/node_modules/optimist/example/usage-options.js
clapton-0.0.5 lib/clapton/javascripts/node_modules/optimist/example/usage-options.js
clapton-0.0.4 lib/clapton/javascripts/node_modules/optimist/example/usage-options.js
clapton-0.0.3 lib/clapton/javascripts/node_modules/optimist/example/usage-options.js
clapton-0.0.2 lib/clapton/javascripts/node_modules/optimist/example/usage-options.js
clapton-0.0.1 lib/clapton/javascripts/node_modules/optimist/example/usage-options.js
epuber-stylus-source-0.56.0 vendor/node_modules/optimist/example/usage-options.js
epuber-stylus-source-0.54.8 vendor/node_modules/optimist/example/usage-options.js
ilog-0.4.1 node_modules/optimist/example/usage-options.js
ilog-0.4.0 node_modules/optimist/example/usage-options.js
ilog-0.3.3 node_modules/optimist/example/usage-options.js
ela-4.1.6 node_modules/optimist/example/usage-options.js
ela-4.1.5 node_modules/optimist/example/usage-options.js
ela-4.1.4 node_modules/optimist/example/usage-options.js
ela-4.1.3 node_modules/optimist/example/usage-options.js
locomotivecms-4.0.0.alpha1 app/javascript/node_modules/optimist/example/usage-options.js
ela-4.1.2 node_modules/optimist/example/usage-options.js
ela-4.1.1 node_modules/optimist/example/usage-options.js
ela-4.1.0 node_modules/optimist/example/usage-options.js
locomotivecms-3.4.0 app/javascript/node_modules/optimist/example/usage-options.js