From a6d2aa25a8cc9bae8379afdf1301095505369848 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sun, 16 Apr 2017 03:46:47 +0300 Subject: usage message update --- update.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/update.sh b/update.sh index 737510c..f6684fe 100755 --- a/update.sh +++ b/update.sh @@ -45,7 +45,8 @@ check_symlinks_enabled_cygwin() { # Utility routines -readonly script_argv0="$( printf -- '%q' "${BASH_SOURCE[0]}" )" +script_name="$( basename -- "${BASH_SOURCE[0]}" )" +readonly script_name dump() { local prefix="${FUNCNAME[0]}" @@ -393,9 +394,7 @@ exit_with_usage() { local msg IFS= read -d '' -r msg <&"$destfd" || true -usage: $script_argv0 [-h|--help] [-d|--database PATH] [-s|--shared-dir DIR] [-n|--dry-run] - -parameters: +usage: $script_name [-h|--help] [-d|--database PATH] [-s|--shared-dir DIR] [-n|--dry-run] -h,--help show this message and exit -d,--database set database file path -s,--shared-dir set top-level shared directory path -- cgit v1.2.3