diff --git a/.all-contributorsrc b/.all-contributorsrc
index 11bd26c..0d4101a 100644
--- a/.all-contributorsrc
+++ b/.all-contributorsrc
@@ -352,6 +352,16 @@
"contributions": [
"code"
]
+ },
+ {
+ "login": "dexpota",
+ "name": "Fabrizio",
+ "avatar_url": "https://avatars1.githubusercontent.com/u/7031675?v=4",
+ "profile": "https://www.destro.me",
+ "contributions": [
+ "bug",
+ "code"
+ ]
}
]
}
diff --git a/README.md b/README.md
index 2d5e821..e6210cf 100644
--- a/README.md
+++ b/README.md
@@ -1,18 +1,19 @@
-- [
- all-contributors-cli
- ](#all-contributors-cli)
+- [ all-contributors-cli ](#all-contributors-cli)
- [The problem](#the-problem)
- [This solution](#this-solution)
- [Using the all-contributors-cli](#using-the-all-contributors-cli)
- - [Contributors](#contributors)
+ - [Contributors ✨](#contributors-)
- [LICENSE](#license)
-> [There is now a GitHub Bot](https://github.com/all-contributors/all-contributors-bot) for automating the maintenance of your contributors table ✨
Say goodbye to command line tool dependencies and hello to the [@all-contributors bot 🤖](https://github.com/all-contributors/all-contributors-bot)
+> [There is now a GitHub Bot](https://github.com/all-contributors/all-contributors-bot)
+> for automating the maintenance of your contributors table ✨
Say goodbye
+> to command line tool dependencies and hello to the
+> [@all-contributors bot 🤖](https://github.com/all-contributors/all-contributors-bot)
all-contributors-cli
@@ -46,13 +47,14 @@
[![Code Coverage](https://img.shields.io/codecov/c/github/all-contributors/all-contributors-cli.svg)](https://codecov.io/github/all-contributors/all-contributors-cli)
[![Version](https://img.shields.io/npm/v/all-contributors-cli.svg)](https://www.npmjs.com/package/all-contributors-cli)
[![Downloads](https://img.shields.io/npm/dm/all-contributors-cli.svg)](http://www.npmtrends.com/all-contributors-cli)
-[![All Contributors](https://img.shields.io/badge/all_contributors-34-orange.svg?style=flat-square)](#contributors-)
+[![All Contributors](https://img.shields.io/badge/all_contributors-37-orange.svg?style=flat-square)](#contributors-)
[![Star on Github](https://img.shields.io/github/stars/all-contributors/all-contributors-cli.svg?style=social)](https://github.com/all-contributors/all-contributors-cli/stargazers)
## The problem
-You want to implement the [All Contributors](https://github.com/all-contributors/all-contributors) spec, but don't
-want to maintain the table by hand
+You want to implement the
+[All Contributors](https://github.com/all-contributors/all-contributors) spec,
+but don't want to maintain the table by hand
## This solution
@@ -62,7 +64,10 @@ specification for your GitHub or GitLab repository.
## Using the all-contributors-cli
-If you're looking to use the cli, head over to [the cli docs on allcontributors.org](https://allcontributors.org/docs/en/cli/overview). The all-contributors website contains all the information required to install, configure and use the all-contributors-cli.
+If you're looking to use the cli, head over to
+[the cli docs on allcontributors.org](https://allcontributors.org/docs/en/cli/overview).
+The all-contributors website contains all the information required to install,
+configure and use the all-contributors-cli.
## Contributors ✨
@@ -70,7 +75,8 @@ Thanks goes to these wonderful people
([emoji key](https://allcontributors.org/docs/en/emoji-key)):
-
+
+
+
+
+
This project follows the
diff --git a/src/cli.js b/src/cli.js
index 57ea787..e3d728c 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 ? undefined : String(argv._[1])
const contributions = argv._[2]
// Add or update contributor in the config file
return updateContributors(argv, username, contributions).then(data => {