| #!/bin/bash |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| function render_getOptions { |
| |
| |
| local ARGSS="q,h" |
| |
| |
| local ARGSL="quiet,help,filter:,answer-yes,dont-dirspecific,releasever:,basearch:,post-rendition:,last-rendition:,theme-model:,with-brands,sync-changes" |
| |
| |
| cli_parseArguments |
| |
| |
| eval set -- "$ARGUMENTS" |
| |
| |
| while true; do |
| |
| case "$1" in |
| |
| -h | --help ) |
| ${CLI_NAME} help --read trunk/Scripts/Bash/Functions/Render |
| shift 1 |
| exit |
| ;; |
| |
| -q | --quiet ) |
| FLAG_QUIET="true" |
| shift 1 |
| ;; |
| |
| --filter ) |
| FLAG_FILTER="$2" |
| shift 2 |
| ;; |
| |
| --answer-yes ) |
| FLAG_ANSWER="true" |
| shift 1 |
| ;; |
| |
| --dont-dirspecific ) |
| FLAG_DONT_DIRSPECIFIC="true" |
| shift 1 |
| ;; |
| |
| --post-rendition ) |
| FLAG_POSTRENDITION="$2" |
| shift 2 |
| ;; |
| |
| --last-rendition ) |
| FLAG_LASTRENDITION="$2" |
| shift 2 |
| ;; |
| |
| --basearch ) |
| FLAG_BASEARCH="$2" |
| if [[ ! $FLAG_BASEARCH =~ $(cli_getPathComponent --architecture-pattern) ]];then |
| cli_printMessage "`gettext "The architecture provided is not supported."`" --as-error-line |
| fi |
| shift 2 |
| ;; |
| |
| --releasever ) |
| FLAG_RELEASEVER="$2" |
| if [[ ! $FLAG_RELEASEVER =~ $(cli_getPathComponent --release-pattern) ]];then |
| cli_printMessage "`gettext "The release version provided is not supported."`" --as-error-line |
| fi |
| shift 2 |
| ;; |
| |
| --theme-model ) |
| FLAG_THEME_MODEL=$(cli_getRepoName $2 -d) |
| shift 2 |
| ;; |
| |
| --with-brands ) |
| FLAG_WITH_BRANDS='true' |
| shift 1 |
| ;; |
| |
| --sync-changes ) |
| FLAG_SYNC_CHANGES='true' |
| shift 1 |
| ;; |
| |
| -- ) |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| shift 1 |
| break |
| ;; |
| esac |
| done |
| |
| |
| cli_parseArgumentsReDef "$@" |
| |
| } |