improvements

This commit is contained in:
ksyasuda
2022-01-08 15:34:18 -08:00
parent 27d4dd5ec3
commit 9be6dccf79
6 changed files with 22 additions and 109 deletions

View File

@@ -48,7 +48,6 @@ Options:
-f <path_to_directory> (no trailing slash) specify starting directory for play for file mode
-Q <query> query the history database
"
exit 0
}
logger() {
@@ -109,6 +108,7 @@ parse_args() {
case "$OPT" in
h)
help_text
exit 0
;;
v)
VERBOSE=1
@@ -177,7 +177,7 @@ parse_args() {
IS_CUSTOM_THEME=1
;;
*)
logger "Invalid option"
help_text
exit 1
;;
esac
@@ -286,8 +286,7 @@ main() {
quit
;;
*)
logger "Invalid choice..."
exit 1
help_text
;;
esac
}