Merge pull request #13 from victort/argumentative

added --help, help verbage, and structure for future argument handling.
This commit is contained in:
the-sane 2021-01-30 13:49:41 -05:00 committed by GitHub
commit 0018591192
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -45,6 +45,20 @@
# https://github.com/richardtatum/sc-runner-updater # https://github.com/richardtatum/sc-runner-updater
############################################################################ ############################################################################
# Nobody expects the spanish inquisition.
while [ $# -gt 0 ]
do
case "$1" 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 # Check for dependencies
if [ ! -x "$(command -v curl)" ]; then if [ ! -x "$(command -v curl)" ]; then
# Print to stderr and also try warning the user through notify-send # Print to stderr and also try warning the user through notify-send