| #!/bin/bash |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| function tuneup_getOptions { |
| |
| |
| local ARGSS="h::,v,f:" |
| |
| |
| local ARGSL="help::,version,filter::" |
| |
| |
| 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}" |
| ;; |
| |
| -f | --filter ) |
| TCAR_FLAG_FILTER="${2:-${TCAR_FLAG_FILTER}}" |
| shift 2 |
| ;; |
| |
| -- ) |
| shift 1 |
| break |
| ;; |
| esac |
| done |
| |
| |
| |
| TCAR_MODULE_ARGUMENT="${@}" |
| |
| } |