Sha256: b56252d875315b4264ceb260df0e0e9a2d581ad9b484e85a9d21ec03af362670

Contents?: true

Size: 606 Bytes

Versions: 7

Compression:

Stored size: 606 Bytes

Contents

/*
 * grunt-cli
 * http://gruntjs.com/
 *
 * Copyright (c) 2012 Tyler Kellen, contributors
 * Licensed under the MIT license.
 * https://github.com/gruntjs/grunt-init/blob/master/LICENSE-MIT
 */

'use strict';

// External lib.
var nopt = require('nopt');

// CLI options we care about.
exports.known = {help: Boolean, version: Boolean, completion: String};
exports.aliases = {h: '--help', V: '--version', v: '--verbose'};

// Parse them and return an options object.
Object.defineProperty(exports, 'options', {
  get: function() {
    return nopt(exports.known, exports.aliases, process.argv, 2);
  }
});

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
entangled-0.0.16 spec/dummy/public/node_modules/grunt-cli/lib/cli.js
entangled-0.0.15 spec/dummy/public/node_modules/grunt-cli/lib/cli.js
entangled-0.0.14 spec/dummy/public/node_modules/grunt-cli/lib/cli.js
entangled-0.0.13 spec/dummy/public/node_modules/grunt-cli/lib/cli.js
entangled-0.0.12 spec/dummy/public/node_modules/grunt-cli/lib/cli.js
entangled-0.0.11 spec/dummy/public/node_modules/grunt-cli/lib/cli.js
entangled-0.0.10 spec/dummy/public/node_modules/grunt-cli/lib/cli.js