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.26 lib/clapton/javascripts/node_modules/optimist/example/usage-options.js
clapton-0.0.25 lib/clapton/javascripts/node_modules/optimist/example/usage-options.js
clapton-0.0.24 lib/clapton/javascripts/node_modules/optimist/example/usage-options.js
clapton-0.0.23 lib/clapton/javascripts/node_modules/optimist/example/usage-options.js
clapton-0.0.22 lib/clapton/javascripts/node_modules/optimist/example/usage-options.js
clapton-0.0.21 lib/clapton/javascripts/node_modules/optimist/example/usage-options.js
clapton-0.0.20 lib/clapton/javascripts/node_modules/optimist/example/usage-options.js
clapton-0.0.19 lib/clapton/javascripts/node_modules/optimist/example/usage-options.js
clapton-0.0.18 lib/clapton/javascripts/node_modules/optimist/example/usage-options.js
clapton-0.0.17 lib/clapton/javascripts/node_modules/optimist/example/usage-options.js
clapton-0.0.16 lib/clapton/javascripts/node_modules/optimist/example/usage-options.js
clapton-0.0.15 lib/clapton/javascripts/node_modules/optimist/example/usage-options.js
clapton-0.0.14 lib/clapton/javascripts/node_modules/optimist/example/usage-options.js
clapton-0.0.13 lib/clapton/javascripts/node_modules/optimist/example/usage-options.js
clapton-0.0.12 lib/clapton/javascripts/node_modules/optimist/example/usage-options.js
clapton-0.0.11 lib/clapton/javascripts/node_modules/optimist/example/usage-options.js
clapton-0.0.10 lib/clapton/javascripts/node_modules/optimist/example/usage-options.js
clapton-0.0.9 lib/clapton/javascripts/node_modules/optimist/example/usage-options.js
clapton-0.0.8 lib/clapton/javascripts/node_modules/optimist/example/usage-options.js
clapton-0.0.7 lib/clapton/javascripts/node_modules/optimist/example/usage-options.js