🦊 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:
parent
0b255413d0
commit
31550448f0
2 changed files with 34 additions and 3 deletions
4
bemoji
4
bemoji
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue