mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-23 07:19:58 +08:00
16 lines
367 B
JavaScript
16 lines
367 B
JavaScript
'use strict';
|
|
|
|
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;
|
|
};
|