| #!/bin/bash |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| function about_getActions { |
| |
| |
| local ARGSS="" |
| |
| |
| local ARGSL="license,history,authors,copying" |
| |
| |
| cli_doParseArguments |
| |
| |
| |
| eval set -- "$ARGUMENTS" |
| |
| |
| while true; do |
| case "$1" in |
| |
| --license ) |
| ACTIONVAL="${FUNCCONFIG}/license.txt" |
| break |
| ;; |
| |
| --history ) |
| ACTIONVAL="${FUNCCONFIG}/history.txt" |
| break |
| ;; |
| |
| --authors ) |
| ACTIONVAL="${FUNCCONFIG}/authors.txt" |
| break |
| ;; |
| |
| --copying | *) |
| ACTIONVAL="${FUNCCONFIG}/copying.txt" |
| break |
| ;; |
| |
| esac |
| done |
| |
| |
| if [[ -f $ACTIONVAL ]];then |
| less $ACTIONVAL |
| else |
| cli_printMessage "`gettext "A valid action is required."`" 'AsErrorLine' |
| cli_printMessage "$(caller)" 'AsToKnowMoreLine' |
| fi |
| |
| } |