Permalink
Browse files

feat(bin): ensure email exists

Signed-off-by: Erona <erona@loli.bz>
  • Loading branch information...
Eronana committed Oct 29, 2018
1 parent e90d4d8 commit 3abf1f04eda60532a0ff3b7b5b2fab783c0e6f44
Showing with 4 additions and 0 deletions.
  1. +4 −0 bin/manage_users
@@ -108,6 +108,10 @@ if (opts.length === 0) {
if (opts.length > 1) {
showUsage(`You cannot ${action.join(' and ')} at the same time!`);
}
// Check if not string
if (typeof argv[action] !== 'string') {
showUsage(`You must follow an email after --${action}`);
}
// Call respective processing functions
options[action](argv).then(function() {

0 comments on commit 3abf1f0

Please sign in to comment.