Skip to content

Commit 3abf1f0

Browse files
committed
feat(bin): ensure email exists
Signed-off-by: Erona <[email protected]>
1 parent e90d4d8 commit 3abf1f0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

bin/manage_users

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,10 @@ if (opts.length === 0) {
108108
if (opts.length > 1) {
109109
showUsage(`You cannot ${action.join(' and ')} at the same time!`);
110110
}
111+
// Check if not string
112+
if (typeof argv[action] !== 'string') {
113+
showUsage(`You must follow an email after --${action}`);
114+
}
111115

112116
// Call respective processing functions
113117
options[action](argv).then(function() {

0 commit comments

Comments
 (0)