Adding exit function and bugfix

Took 4 minutes
This commit is contained in:
Tobias Hopp 2020-07-06 21:39:00 +02:00
parent 186ca6c85a
commit 425f72c9cd

View File

@ -38,7 +38,7 @@ function main()
break;
case 'downloadmusic':
echo "This function has an old CLI! Opening CLI...\n-----------\n";
$audiovideo = new AudioVideoHandler();
new AudioVideoHandler();
echo "CLI exited. Continue with new CLI...\n";
break;
case 'setsid':
@ -49,6 +49,9 @@ function main()
}
echo "Function not completed yet!\n";
break;
case 'exit':
echo "Have a nice dayyyy!!\n";
exit();
default:
echo "Unkown command. Use help for help.\n";
break;