add -t flag to show how many games are available.
This commit is contained in:
parent
e9531f4050
commit
3b6c4e8859
@ -288,6 +288,7 @@ declare -A command=(
|
|||||||
[L]="Display license information."
|
[L]="Display license information."
|
||||||
[N]="No cache, delete the installer after it has been extracted."
|
[N]="No cache, delete the installer after it has been extracted."
|
||||||
[R]="Redownload. Removes old versions of packages from cache before installing."
|
[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
|
# Convert the keys of the associative array to a format usable by getopts
|
||||||
@ -302,6 +303,10 @@ while getopts "${args}" i ; do
|
|||||||
L) license;;
|
L) license;;
|
||||||
N) noCache="true";;
|
N) noCache="true";;
|
||||||
R) redownload="true";;
|
R) redownload="true";;
|
||||||
|
t)
|
||||||
|
dialog --backtitle "Linux Game Manager" \
|
||||||
|
--infobox "There are currently ${#gameList[@]} games available." -1 -1
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user