Skip to content

Commit 9ff0cab

Browse files
committed
Update script to pass more than one argument
1 parent 8b20ad0 commit 9ff0cab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/authors.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,8 @@ namespace Commands {
109109
};
110110
listKnownAuthors.description = "List known authors as listed in .mailmap file.";
111111

112-
export const listAuthors: Command = function (spec = "") {
113-
const cmd = "git shortlog -se " + spec;
112+
export const listAuthors: Command = function (...specs:string[]) {
113+
const cmd = "git shortlog -se " + specs.join(" ");
114114
console.log(cmd);
115115
const outputRegExp = /\d+\s+([^<]+)<([^>]+)>/;
116116
const tty = process.platform === 'win32' ? 'CON' : '/dev/tty';

0 commit comments

Comments
 (0)