renommer la variable contenant les options

This commit is contained in:
Jephte CLAIN 2014-10-23 22:56:22 +04:00
parent 6a58fc9b1d
commit d469153bf6
2 changed files with 3 additions and 3 deletions

View File

@ -135,7 +135,7 @@ wwwdir=
certsconfdir=
rrdir=
restart=1
__TEMPLATECTL_OTHER_OPTS=(
__TEMPLATECTL_SUPPLOPTS=(
-u,--update update=1
-r:,--certsdir: certsdir=
--confdir: confdir=

View File

@ -239,7 +239,7 @@ function templatesrc() {
}
function __templatectl_display_help() { :; }
__TEMPLATECTL_OTHER_OPTS=()
__TEMPLATECTL_SUPPLOPTS=()
function __templatectl_parseopts() {
parse_opts "${PRETTYOPTS[@]}" \
--help '$exit_with __templatectl_display_help' \
@ -250,7 +250,7 @@ function __templatectl_parseopts() {
-z,--unmerge '$unmerge=1; templatectl_opt=1' \
-C,--clean '$clean=1; templatectl_opt=1' \
-g,--diff '$diff=1; templatectl_opt=1' \
"${__TEMPLATECTL_OTHER_OPTS[@]}" \
"${__TEMPLATECTL_SUPPLOPTS[@]}" \
@ args -- "$@"
}
function __templatectl_do() {