diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 17938bfd..5b8a151a 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -234,7 +234,14 @@ DELSITE(){ SERVICE nginx reload echo -e "${idsCL[LightRed]}Site has been deleted.${idsCL[Default]}" else - echo -e "${idsCL[LightRed]}No site was defined.${idsCL[Default]}" + echo "Missing arguments" + echo "" + echo -e "Usage: ${idsCL[Yellow]}nodemgmt delsite${idsCL[Default]} {" + width=33 + printf "%-${width}s- %s\n" " -site {FQDN address}" "(*required)" + printf "%-${width}s- %s\n" " -ssl {yes or [no]}" "Delete SSL certs as well" + echo "}" + exit 1 fi }