summaryrefslogtreecommitdiff
path: root/tessen
diff options
context:
space:
mode:
authorAyush Agarwal <ayush@fastmail.in>2021-09-21 00:14:08 +0530
committerAyush Agarwal <ayush@fastmail.in>2021-09-21 00:14:08 +0530
commit81e2c3b92a99f4c5cc663592b75293f8efeedae5 (patch)
treeaa3780f143fe43356274bda0658a6449e054496c /tessen
parent5ab7d0001d5a27a4a53bbb59f445fad4949cde29 (diff)
replace name with parameter expanded variable
Diffstat (limited to 'tessen')
-rwxr-xr-xtessen14
1 files changed, 7 insertions, 7 deletions
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
;;
--)