| #!/bin/bash |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| function prepare_getOptions { |
| |
| |
| local ARGSS="" |
| |
| |
| local ARGSL="quiet,answer-yes,packages,links,environment" |
| |
| |
| cli_parseArguments |
| |
| |
| |
| eval set -- "$ARGUMENTS" |
| |
| |
| while true; do |
| case "$1" in |
| |
| --quiet ) |
| FLAG_QUIET="true" |
| FLAG_DONT_COMMIT_CHANGES="true" |
| shift 1 |
| ;; |
| |
| --answer-yes ) |
| FLAG_ANSWER="true" |
| shift 1 |
| ;; |
| |
| --packages ) |
| FLAG_PACKAGES="true" |
| shift 1 |
| ;; |
| |
| --links ) |
| FLAG_LINKS="true" |
| shift 1 |
| ;; |
| |
| --environment ) |
| FLAG_ENVIRONMENT="true" |
| shift 1 |
| ;; |
| |
| * ) |
| break |
| esac |
| done |
| |
| } |