From 6cbec25c9fe3a99cc720cde91f777f0d33e55bcb Mon Sep 17 00:00:00 2001 From: Fabrizio Destro <7031675+dexpota@users.noreply.github.com> Date: Thu, 17 Oct 2019 18:02:39 +0200 Subject: [PATCH] Fix issue #209 --- src/cli.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cli.js b/src/cli.js index 57ea787d..29bf728a 100755 --- a/src/cli.js +++ b/src/cli.js @@ -72,7 +72,7 @@ function startGeneration(argv) { } function addContribution(argv) { - const username = String(argv._[1]) + const username = argv._[1] !== undefined ? String(argv._[1]) : undefined const contributions = argv._[2] // Add or update contributor in the config file return updateContributors(argv, username, contributions).then(data => {