| #!/bin/bash |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| function locale_getOptions { |
| |
| |
| local ARGSS="" |
| |
| |
| local ARGSL="filter:,quiet,answer-yes,dont-commit-changes,update,edit,delete,dont-create-mo" |
| |
| |
| cli_parseArguments |
| |
| |
| |
| eval set -- "$ARGUMENTS" |
| |
| |
| while true; do |
| case "$1" in |
| |
| --filter ) |
| FLAG_FILTER="$2" |
| shift 2 |
| ;; |
| |
| --quiet ) |
| FLAG_QUIET="true" |
| FLAG_DONT_COMMIT_CHANGES="true" |
| shift 1 |
| ;; |
| |
| --answer-yes ) |
| FLAG_ANSWER="true" |
| shift 1 |
| ;; |
| |
| --dont-commit-changes ) |
| FLAG_DONT_COMMIT_CHANGES="true" |
| shift 1 |
| ;; |
| |
| --update ) |
| ACTIONNAMS="$ACTIONNAMS ${FUNCNAM}_updateMessages" |
| shift 1 |
| ;; |
| |
| --edit ) |
| ACTIONNAMS="$ACTIONNAMS ${FUNCNAM}_editMessages" |
| shift 1 |
| ;; |
| |
| --delete ) |
| ACTIONNAMS="$ACTIONNAMS ${FUNCNAM}_deleteMessages" |
| shift 1 |
| ;; |
| |
| --dont-create-mo ) |
| FLAG_DONT_CREATE_MO="true" |
| shift 1 |
| ;; |
| |
| -- ) |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| shift 1 |
| break |
| ;; |
| esac |
| done |
| |
| |
| |
| if [[ $ACTIONNAMS == '' ]];then |
| ACTIONNAMS="${FUNCNAM}_editMessages" |
| fi |
| |
| |
| cli_parseArgumentsReDef "$@" |
| |
| |
| |
| |
| if [[ $ARGUMENTS == '' ]];then |
| ARGUMENTS=${PWD} |
| fi |
| |
| } |