Update script to pass more than one argument

This commit is contained in:
Mohamed Hegazy 2016-07-06 00:44:30 -07:00
parent 8b20ad00b9
commit 9ff0cab59c

View File

@ -109,8 +109,8 @@ namespace Commands {
};
listKnownAuthors.description = "List known authors as listed in .mailmap file.";
export const listAuthors: Command = function (spec = "") {
const cmd = "git shortlog -se " + spec;
export const listAuthors: Command = function (...specs:string[]) {
const cmd = "git shortlog -se " + specs.join(" ");
console.log(cmd);
const outputRegExp = /\d+\s+([^<]+)<([^>]+)>/;
const tty = process.platform === 'win32' ? 'CON' : '/dev/tty';