mirror of
https://github.com/the-sane/lug-helper.git
synced 2024-12-27 07:54:19 +00:00
added --help, help verbage, and structure for future argument handling.
This commit is contained in:
parent
1670c3ccf7
commit
8bd3a165de
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user