| #!/bin/bash |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| function render_getOptions { |
| |
| |
| local ARGSS="" |
| |
| |
| local ARGSL="filter:,quiet,answer-yes,dont-commit-changes,dont-dirspecific,releasever:,basearch:,post-rendition:,last-rendition:,theme-model:" |
| |
| |
| 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 |
| ;; |
| |
| --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 |
| ;; |
| |
| -- ) |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| shift 1 |
| break |
| ;; |
| esac |
| done |
| |
| |
| cli_parseArgumentsReDef "$@" |
| |
| } |