| #!/bin/bash |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| function help_getArguments { |
| |
| |
| local ARGSS="" |
| |
| |
| local ARGSL="filter:,quiet,answer:,dont-commit-changes,read,search,edit,update" |
| |
| |
| cli_doParseArguments |
| |
| |
| |
| 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 ) |
| FLAG_ANSWER="$2" |
| shift 2 |
| ;; |
| |
| --dont-commit-changes ) |
| FLAG_DONT_COMMIT_CHANGES="true" |
| shift 1 |
| ;; |
| |
| --search ) |
| ACTIONNAM="${FUNCNAM}_searchIndex" |
| shift 1 |
| ;; |
| |
| --edit ) |
| ACTIONNAM="${FUNCNAM}_editEntry" |
| shift 1 |
| ;; |
| |
| --update ) |
| ACTIONNAM="${FUNCNAM}_updateOutputFiles" |
| shift 1 |
| ;; |
| |
| --read ) |
| ACTIONNAM="${FUNCNAM}_searchNode" |
| FLAG_DONT_COMMIT_CHANGES='true' |
| shift 1 |
| ;; |
| |
| -- ) |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| shift 1 |
| break |
| ;; |
| esac |
| done |
| |
| |
| |
| |
| if [[ $# -eq 0 ]];then |
| /usr/bin/info --node="Top" --file=${MANUAL_BASEFILE}.info.bz2 |
| exit |
| fi |
| |
| |
| cli_doParseArgumentsReDef "$@" |
| |
| } |