| #!/bin/bash |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| function locale_getArguments { |
| |
| |
| local ARGSS="" |
| |
| |
| local ARGSL="filter:,quiet,answer:,dont-commit-changes,update,edit,dont-create-mo" |
| |
| |
| cli_doParseArguments |
| |
| |
| |
| 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 ) |
| FLAG_ANSWER="$2" |
| shift 2 |
| ;; |
| |
| --dont-commit-changes ) |
| FLAG_DONT_COMMIT_CHANGES="true" |
| shift 1 |
| ;; |
| |
| --update ) |
| ACTIONNAM="${FUNCNAM}_updateMessages" |
| shift 1 |
| ;; |
| |
| --edit ) |
| ACTIONNAM="${FUNCNAM}_editMessages" |
| shift 1 |
| ;; |
| |
| --dont-create-mo ) |
| FLAG_DONT_CREATE_MO="true" |
| shift 1 |
| ;; |
| |
| -- ) |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| shift 1 |
| break |
| ;; |
| esac |
| done |
| |
| |
| cli_doParseArgumentsReDef "$@" |
| |
| } |