Add version command
This commit is contained in:
parent
761fd94395
commit
cf02ca95ff
1 changed files with 5 additions and 3 deletions
|
@ -2,6 +2,7 @@
|
|||
|
||||
. tidler.conf # Load ENVs from config file
|
||||
|
||||
version="0.3.0"
|
||||
|
||||
if [ -n "$PROXY_URL" ]; then
|
||||
proxy_url="$PROXY_URL"
|
||||
|
@ -267,9 +268,6 @@ searchAlbum() {
|
|||
}
|
||||
|
||||
|
||||
|
||||
echo "Welcome to TiDLer!" && echo ""
|
||||
|
||||
if [ "$1" = "search" ]; then
|
||||
if [ "$#" -ge 2 ]; then
|
||||
shift
|
||||
|
@ -292,6 +290,8 @@ elif [ "$1" = "album" ]; then
|
|||
else
|
||||
searchAlbum
|
||||
fi
|
||||
elif [ "$1" == "version" ]; then
|
||||
echo "TiDLer $version by Medvidek77"
|
||||
|
||||
elif [ "$1" = "help" ]; then
|
||||
echo "<MODE>"
|
||||
|
@ -306,6 +306,8 @@ elif [ "$1" = "help" ]; then
|
|||
echo ""
|
||||
echo "album {album_name}-optional -> search and download any album"
|
||||
echo ""
|
||||
echo "version -> print TiDLer version"
|
||||
echo ""
|
||||
echo "help -> print this message and exit"
|
||||
else
|
||||
echo "### Choose function! (Enter number) ###"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue