Merge pull request #773 from Neilpang/dev

minor, add more error message
This commit is contained in:
neil 2017-04-05 20:48:21 +08:00 committed by GitHub
commit 6c3a0bc72c
1 changed files with 4 additions and 0 deletions

View File

@ -3121,6 +3121,10 @@ issue() {
_usage "Usage: $PROJECT_ENTRY --issue -d a.com -w /path/to/webroot/a.com/ "
return 1
fi
if [ -z "$1" ]; then
_usage "Please specify at least one validation method: '--webroot', '--standalone', '--apache', '--nginx' or '--dns' etc."
return 1
fi
_web_roots="$1"
_main_domain="$2"
_alt_domains="$3"