From 9ff0cab59c9fbd55b3de75c73a3bb32be66fe4ea Mon Sep 17 00:00:00 2001 From: Mohamed Hegazy Date: Wed, 6 Jul 2016 00:44:30 -0700 Subject: [PATCH] Update script to pass more than one argument --- scripts/authors.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/authors.ts b/scripts/authors.ts index 6b7bacfd77d..fd9d27acd00 100644 --- a/scripts/authors.ts +++ b/scripts/authors.ts @@ -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';