| #!/bin/bash |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| function help_getOptions { |
| |
| |
| local ARGSS="" |
| |
| |
| local ARGSL="quiet,answer-yes,dont-commit-changes,read,search:,edit,update-output,update-structure,copy,delete,rename" |
| |
| |
| 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 |
| ;; |
| |
| --dont-commit-changes ) |
| FLAG_DONT_COMMIT_CHANGES="true" |
| shift 1 |
| ;; |
| |
| --search ) |
| ACTIONNAM="searchIndex" |
| FLAG_SEARCH="$2" |
| shift 2 |
| ;; |
| |
| --edit ) |
| ACTIONNAM="editEntry" |
| shift 1 |
| ;; |
| |
| --copy ) |
| ACTIONNAM="copyEntry" |
| shift 1 |
| ;; |
| |
| --delete ) |
| ACTIONNAM="deleteEntry" |
| shift 1 |
| ;; |
| |
| --rename ) |
| ACTIONNAM="renameEntry" |
| shift 1 |
| ;; |
| |
| --update-output ) |
| ACTIONNAM="updateOutputFiles" |
| shift 1 |
| ;; |
| |
| --update-structure ) |
| ACTIONNAM="updateStructureSection" |
| shift 1 |
| ;; |
| |
| --read ) |
| ACTIONNAM="searchNode" |
| shift 1 |
| ;; |
| |
| -- ) |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| shift 1 |
| break |
| ;; |
| esac |
| done |
| |
| |
| cli_parseArgumentsReDef "$@" |
| |
| } |