Unified help texts and descriptions for domains add and remove commands

This commit is contained in:
Ilya Semenov committed 2016-09-08 13:21:30 +07:00
1 parent 45f05615c4
commit 9265bd8e37
6 files changed
+19 -28

No files matched your search

+1 -6
View File
@@ -7,12 +7,7 @@ domains_remove_cmd() {
declare desc="removes domains from app via command line"
local cmd="domains:remove"
[[ -z $2 ]] && dokku_log_fail "Please specify an app to run the command on"
if [[ -z "${*:3}" ]]; then
echo "Usage: dokku $1 $2 DOMAIN [DOMAIN ...]"
echo "Must specify DOMAIN."
exit 1
fi
[[ -z $3 ]] && dokku_log_fail "Please specify a domain name. Usage: dokku $1 $2 <domain> [<domain> ...]"
shift 1
domains_remove "$@"