diff --git a/linux-game-manager.sh b/linux-game-manager.sh index 77f8b26..56a3186 100755 --- a/linux-game-manager.sh +++ b/linux-game-manager.sh @@ -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