add -t flag to show how many games are available.

This commit is contained in:
Storm Dragon 2022-03-12 23:59:55 -05:00
parent e9531f4050
commit 3b6c4e8859

View File

@ -288,6 +288,7 @@ declare -A command=(
[L]="Display license information."
[N]="No cache, delete the installer after it has been extracted."
[R]="Redownload. Removes old versions of packages from cache before installing."
[t]="Total games. Show how many games are currently available."
)
# Convert the keys of the associative array to a format usable by getopts
@ -302,6 +303,10 @@ while getopts "${args}" i ; do
L) license;;
N) noCache="true";;
R) redownload="true";;
t)
dialog --backtitle "Linux Game Manager" \
--infobox "There are currently ${#gameList[@]} games available." -1 -1
;;
esac
done