Call getUsage after checking prerequisites in lib

This commit is contained in:
Rezart Qelibari
2022-02-17 15:48:45 +01:00
parent 14f2107edf
commit ead076a8e0
2 changed files with 12 additions and 6 deletions

View File

@@ -37,7 +37,7 @@ function showQuestions() {
function module_main() {
autoloadZShLib || return
checkPrerequisites || return
eval "`docopts -f -V - -h - : "$@"`"
eval "`getUsage | docopts -f -V - -h - : "$@"`"
[ $# -le 1 ] && return
configureLogging
[ "${show_questions}" = true ] && { showQuestions; return }