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= certsconfdir=
rrdir= rrdir=
restart=1 restart=1
__TEMPLATECTL_OTHER_OPTS=( __TEMPLATECTL_SUPPLOPTS=(
-u,--update update=1 -u,--update update=1
-r:,--certsdir: certsdir= -r:,--certsdir: certsdir=
--confdir: confdir= --confdir: confdir=

View File

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