12345678910111213141516171819202122232425262728293031323334353637383940 |
-
- 'use strict';
-
- var util = require('util');
-
- var Action = require('../action');
-
-
- var ActionCount = module.exports = function ActionCount(options) {
- options = options || {};
- options.nargs = 0;
-
- Action.call(this, options);
- };
- util.inherits(ActionCount, Action);
-
-
- ActionCount.prototype.call = function (parser, namespace) {
- namespace.set(this.dest, (namespace[this.dest] || 0) + 1);
- };
|