From d63e4d11623c06ee935f55eca13ab0bb101ac886 Mon Sep 17 00:00:00 2001 From: con-f-use Date: Sat, 19 Dec 2020 00:21:58 +0100 Subject: [PATCH] print help and version early closes #267 --- yadm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/yadm b/yadm index a03e769..1d0c30b 100755 --- a/yadm +++ b/yadm @@ -1401,6 +1401,12 @@ function process_global_args() { while [[ $# -gt 0 ]] ; do key="$1" case $key in + -V|--version) + version + ;; + -h|--help) + help + ;; -Y|--yadm-dir) # override the standard YADM_DIR if [[ ! "$2" =~ ^/ ]] ; then error_out "You must specify a fully qualified yadm directory"