aboutsummaryrefslogtreecommitdiffstats
path: root/mayor-mod/bin/help.sh
diff options
context:
space:
mode:
authorM.Gergo2019-03-08 20:50:48 +0100
committerM.Gergo2019-03-08 20:50:48 +0100
commit3dab26c6797b32926287f22a041380080551060b (patch)
treebb4ba41398083a054e956e25f2d8c72bcdd0a7a0 /mayor-mod/bin/help.sh
parentf70027ffbedce10f412868a7bf9b0b67b113f1b1 (diff)
downloadmayor-3dab26c6797b32926287f22a041380080551060b.tar.gz
mayor-3dab26c6797b32926287f22a041380080551060b.zip
pici rendrakás
Diffstat (limited to 'mayor-mod/bin/help.sh')
-rw-r--r--mayor-mod/bin/help.sh47
1 files changed, 0 insertions, 47 deletions
diff --git a/mayor-mod/bin/help.sh b/mayor-mod/bin/help.sh
deleted file mode 100644
index e983ccd3..00000000
--- a/mayor-mod/bin/help.sh
+++ /dev/null
@@ -1,47 +0,0 @@
-#!/bin/bash
-
-OPT_SPEC="hf::"
-LONG_OPT_SPEC="help,file:,f::"
-PARSED_OPTIONS=$(getopt -n "$0" -a -o $OPT_SPEC --long $LONG_OPT_SPEC -- "$@")
-OPTIONS_RET=$?
-eval set -- "$PARSED_OPTIONS"
-
-help_usage() {
- print_help;
- echo -e "\nHELP használata: mayor help [parancs]\n\n"
-}
-
-if [ $OPTIONS_RET -ne 0 ] || [ $# -le 1 ]; then help_usage; exit; fi
-
-while [ $# -ge 1 ]; do
- case $1 in
- --help | -h ) help_usage
- exit
- ;;
-
- --file | -f ) shift
- FILE="$1"
- echo "FILE: $FILE"
- ;;
-
- -- ) shift
- break
- ;;
-
- * ) echo "HIBA: ismeretlen opció: $1" # ide elvileg sose jutunk, mert a getopts már kiszűrte a hibás paramétereket...
- exit
- ;;
- esac
- shift
-done
-
-while [ $# -ge 1 ]; do
- echo -e "\n---------- HELP: $1 ----------\n"
- if [[ ! "${CMDS[*]}" =~ .*$1.* ]]; then
- echo -e "Ismeretlen parancs: $1"
- #print_help
- else
- . ./$1.sh --help
- fi
- shift
-done