🦊 Add display for directory config to -v option

Added a quick way to see if directories have been set up correctly. This
also eases testing for future ways of setting directories through
environment variables or options.
This commit is contained in:
Marty Oehme 2022-06-29 11:44:15 +02:00
parent 0b255413d0
commit 31550448f0
Signed by: Marty
GPG key ID: B7538B8F50A1C800
2 changed files with 34 additions and 3 deletions

4
bemoji
View file

@ -33,14 +33,14 @@ usage() {
echo " -e Only echo out the picked emoji."
echo " -D <choice> Choose specific default lists to download if none found locally."
echo " Valid choices: all|none|emoji|math."
echo " -v Display current program version."
echo " -v Display current program version and directory configuration."
echo " -h Show this help."
echo
exit "$1"
}
version() {
printf "v%s" "$bm_version"
printf "v%s\ndatabase=%s\nhistory=%s\n" "$bm_version" "$bm_db_location" "$bm_history_file"
exit
}