| #!/bin/bash |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| function prepare_getOptions { |
| |
| |
| local ARGSS="h::,v" |
| |
| |
| local ARGSL="help::,version,packages,locales,links,documents,images" |
| |
| |
| tcar_setModuleArguments |
| |
| |
| |
| eval set -- "${TCAR_MODULE_ARGUMENT}" |
| |
| |
| while true; do |
| case "${1}" in |
| |
| -h | --help ) |
| tcar_printHelp "${2}" |
| ;; |
| |
| -v | --version ) |
| tcar_printVersion "${TCAR_MODULE_NAME}" |
| ;; |
| |
| --packages ) |
| ACTIONS="${ACTIONS} packages" |
| shift 1 |
| ;; |
| |
| --locales ) |
| ACTIONS="${ACTIONS} locales" |
| shift 1 |
| ;; |
| |
| --links ) |
| ACTIONS="${ACTIONS} links" |
| shift 1 |
| ;; |
| |
| --documents ) |
| ACTIONS="${ACTIONS} documents" |
| shift 1 |
| ;; |
| |
| --images ) |
| ACTIONS="${ACTIONS} images" |
| shift 1 |
| ;; |
| |
| -- ) |
| shift 1 |
| break |
| ;; |
| |
| esac |
| done |
| |
| |
| |
| TCAR_MODULE_ARGUMENT="${@}" |
| |
| } |