added --help, help verbage, and structure for future argument handling.

This commit is contained in:
mprov 2021-01-28 17:11:03 -08:00
parent 1670c3ccf7
commit 8bd3a165de

View File

@ -45,6 +45,21 @@
# https://github.com/richardtatum/sc-runner-updater
############################################################################
# Nobody expects the spanish inquisition.
while [ $# -gt 0 ]
do
opt="${1}"
case "${opt}" in
--help|-h|-? )
printf "\n$0: There are currently no command line arguments, this is actually a GUI script.\nRun this command again without any arguments.\n\n"
exit 0
;;
* )
;;
esac
shift;
done
# Check for dependencies
if [ ! -x "$(command -v curl)" ]; then
# Print to stderr and also try warning the user through notify-send