refactor(helpers): change name of stop and remove parameter switch

This commit is contained in:
Asif Bacchus 2021-07-27 15:55:17 -06:00
parent 0db9675bc4
commit 750ad05d06

View File

@ -4,6 +4,8 @@
# start ab-nginx container using params file variables # start ab-nginx container using params file variables
# #
# TODO: add error trapping on docker run statements
# text formatting presets # text formatting presets
if command -v tput >/dev/null; then if command -v tput >/dev/null; then
cyan=$(tput bold)$(tput setaf 6) cyan=$(tput bold)$(tput setaf 6)
@ -86,7 +88,7 @@ scriptHelp() {
textBlockParam '--stop' textBlockParam '--stop'
textBlock "Stops the container specified by the '--name' parameter or with the default name 'ab-nginx'." textBlock "Stops the container specified by the '--name' parameter or with the default name 'ab-nginx'."
newline newline
textBlockParam '--remove | --stopremvoe' textBlockParam '--remove | --stop-remove'
textBlock "Stops and removes the container specified by the '--name' parameter or with the default name 'ab-nginx'." textBlock "Stops and removes the container specified by the '--name' parameter or with the default name 'ab-nginx'."
# footer # footer
@ -212,7 +214,7 @@ while [ $# -gt 0 ]; do
# stop named container # stop named container
doStop=true doStop=true
;; ;;
--remove | --stopremove) --remove | --stop-remove)
# stop and remove named container # stop and remove named container
doStop=true doStop=true
removeStopped=true removeStopped=true