feat(bin): ensure email exists
Signed-off-by: Erona <erona@loli.bz>
This commit is contained in:
parent
e90d4d824b
commit
3abf1f04ed
1 changed files with 4 additions and 0 deletions
|
@ -108,6 +108,10 @@ if (opts.length === 0) {
|
||||||
if (opts.length > 1) {
|
if (opts.length > 1) {
|
||||||
showUsage(`You cannot ${action.join(' and ')} at the same time!`);
|
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
|
// Call respective processing functions
|
||||||
options[action](argv).then(function() {
|
options[action](argv).then(function() {
|
||||||
|
|
Loading…
Reference in a new issue