1234567891011121314151617181920 |
- var util = require('util');
- var Base = require('./base');
- /**
- * The `NamedBase` object is only dealing with one argument: `name`.
- *
- * You can use it whenever you need at least one **required** positional
- * argument for your generator (which is a fairly common use case).
- *
- * @param {String|Array} args [description]
- * @param {Object} options [description]
- */
- function NamedBase(args, options) {
- Base.apply(this, arguments);
- this.argument('name', { type: String, required: true });
- }
- util.inherits(NamedBase, Base);
- module.exports = NamedBase;
|