From 62afd5d7fb2c6d764d0756136041d0162cb022db Mon Sep 17 00:00:00 2001 From: Spacelord Date: Mon, 9 Mar 2020 19:07:50 +0100 Subject: Installer: Update help --- installer.sh | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/installer.sh b/installer.sh index 049d7c7..f8fad18 100755 --- a/installer.sh +++ b/installer.sh @@ -13,10 +13,12 @@ latest_version=$(curl --silent "https://api.github.com/repos/cbdevnet/midimonste makeargs=all # Build args normal=$(tput sgr0) +dim=$(tput dim) bold=$(tput bold) -bold2=$(tput smso) -c_red=$(tput setaf 1) -c_green=$(tput setaf 2) +uline=$(tput smul) +c_red=$(tput setaf 1) +c_green=$(tput setaf 2) +c_mag=$(tput setaf 5) VAR_DESTDIR="" # Unused VAR_PREFIX="/usr" @@ -67,16 +69,17 @@ ARGS () { -fu|--forceupdate) UPDATER_FORCE="1" ;; - -h|--help|*) # [WIP messages] + -h|--help|*) # Help messages printf "${bold}Usage:${normal} ${0} ${c_green}[OPTIONS]${normal}" - printf "\n ${c_green}--prefix${normal} ${c_red}${normal} Sets the prefix" - printf "\n ${c_green}--plugins${normal} ${c_red}${normal} Sets the plugin path" - printf "\n ${c_green}--defcfg${normal} ${c_red}${normal} Sets the config path" - printf "\n ${c_green}--examples${normal} ${c_red}${normal} Sets the example configs path\n" - printf "\n ${c_green}--dev${normal} Install nightly version (combine with --forceupdate to upgrade to nightly version)" + printf "\n ${c_green}--prefix${normal} ${c_red}${normal} Sets the prefix ${c_mag}Default:${normal} ${dim}%s ${normal}" "$VAR_PREFIX" + printf "\n ${c_green}--plugins${normal} ${c_red}${normal} Sets the plugin path ${c_mag}Default:${normal} ${dim}%s ${normal}" "$VAR_PLUGINS" + printf "\n ${c_green}--defcfg${normal} ${c_red}${normal} Sets the config path ${c_mag}Default:${normal} ${dim}%s ${normal}" "$VAR_DEFAULT_CFG" + printf "\n ${c_green}--examples${normal} ${c_red}${normal} Sets the example configs path ${c_mag}Default:${normal} ${dim}%s ${normal}\n" "$VAR_EXAMPLE_CFGS" + printf "\n ${c_green}--dev${normal} Install nightly version" printf "\n ${c_green}-d, --default${normal} Use default values to install" - printf "\n ${c_green}-fu, --forceupdate${normal} Force the updater to update without a version check (Can be used to upgrade to the nightly version)" - printf "\n ${c_green}-h, --help${normal} Show this message\n" + printf "\n ${c_green}-fu, --forceupdate${normal} Force the updater to update without a version check" + printf "\n ${c_green}-h, --help${normal} Show this message" + printf "\n ${uline}${bold}${c_mag}Each argument can be overwritten by another, the last one is used!${normal}\n" exit 1 ;; esac -- cgit v1.2.3