From 81e2c3b92a99f4c5cc663592b75293f8efeedae5 Mon Sep 17 00:00:00 2001 From: Ayush Agarwal Date: Tue, 21 Sep 2021 00:14:08 +0530 Subject: replace name with parameter expanded variable --- tessen | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'tessen') diff --git a/tessen b/tessen index d18996c..c806f3d 100755 --- a/tessen +++ b/tessen @@ -179,15 +179,15 @@ wld_copy() { print_help() { printf '%s\n' "${0##*/} - autotype and copy data from password-store on wayland" "" printf '%s\n' "Usage: ${0##*/} [options]" "" - printf '%s\n' " tessen use bemenu and either autotype OR copy data" - printf '%s\n' " tessen -b rofi use rofi and either autotype OR copy data" - printf '%s\n' " tessen -b rofi -a autotype use rofi and always autotype data" - printf '%s\n' " tessen -b rofi -a copy use rofi and always copy data" - printf '%s\n' " tessen -b rofi -a both use rofi and always autotype AND copy data" "" + printf '%s\n' " ${0##*/} use bemenu and either autotype OR copy data" + printf '%s\n' " ${0##*/} -b rofi use rofi and either autotype OR copy data" + printf '%s\n' " ${0##*/} -b rofi -a autotype use rofi and always autotype data" + printf '%s\n' " ${0##*/} -b rofi -a copy use rofi and always copy data" + printf '%s\n' " ${0##*/} -b rofi -a both use rofi and always autotype AND copy data" "" printf '%s\n' " -b, --backend, --backend= choose 'bemenu' or 'rofi' as backend (default: bemenu)" printf '%s\n' " -a, --action, --action= choose one of 'autotype|copy|both'" printf '%s\n' " -h, --help print this help menu" - printf '%s\n' " -v, --version print the version of tessen" "" + printf '%s\n' " -v, --version print the version of ${0##*/}" "" printf '%s\n' "For more details, visit https://github.com/ayushnix/tessen" } @@ -276,7 +276,7 @@ main() { exit 0 ;; -v | --version) - printf '%s\n' "tessen version $VERSION" + printf '%s\n' "${0##*/} version $VERSION" exit 0 ;; --) -- cgit v1.2.3