diff --git a/usr/local/share/bastille/config.sh b/usr/local/share/bastille/config.sh index 29a66fcf..e1e9e79a 100644 --- a/usr/local/share/bastille/config.sh +++ b/usr/local/share/bastille/config.sh @@ -34,7 +34,7 @@ usage() { - error_notify "Usage: bastille config TARGET [get|set|remove] PROPERTY VALUE" + error_notify "Usage: bastille config [option(s)] TARGET [get|(set|add)|remove] PROPERTY VALUE" cat << EOF Options: @@ -94,13 +94,17 @@ case "${ACTION}" in usage fi ;; - set|remove) + add|set|remove) ;; *) - error_exit "[ERROR]: Only set, remove and get are supported." + error_exit "[ERROR]: Only (add|set), get and remove are supported." ;; esac +if [ "${ACTION}" = "add" ]; then + ACTION="set" +fi + PROPERTY="${1}" shift VALUE="$@"