ember-cli-ajh
Version:
Command line tool for developing ambitious ember.js apps
16 lines (12 loc) • 367 B
JavaScript
;
module.exports = function(option, commandArgs) {
var results = [], value, i;
var optionIndex = commandArgs.indexOf(option);
if (optionIndex === -1) { return results; }
for (i = optionIndex + 1; i < commandArgs.length; i++) {
value = commandArgs[i];
if (/^\-+/.test(value)) { break; }
results.push(value);
}
return results;
};