-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
missed scriptResources directory in last commit, adding now
- Loading branch information
Showing
1 changed file
with
51 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
#!/bin/bash | ||
# ----------------------------------------------------------------------------- | ||
# Written by: <author> | ||
# <description> | ||
# ----------------------------------------------------------------------------- | ||
|
||
VERSION=0.1.0 | ||
USAGE () { | ||
printf "Usage: $(basename $0) [OPTIONS]... [ARGUMENTS]... | ||
<short description> | ||
OPTIONS. | ||
-h, --help display this help and exit | ||
--version output version information and exit | ||
<further_information> | ||
Exit status: | ||
0 if OK, | ||
1 if minor issue (e.g. cannot parse input), | ||
2 if serious issue (e.g. cannot access file/resource). | ||
<sources> | ||
(i.e. GitHub link, online documentation, etc.)\n" | ||
} | ||
|
||
# --- Options processing ------------------------------------------------------ | ||
|
||
while [[ "$1" =~ ^-.* ]]; do | ||
case $1 in | ||
-h | --help ) shift | ||
USAGE | ||
exit 0 | ||
;; | ||
--version ) shift | ||
printf "Script Version:\t$VERSION" | ||
exit 0 | ||
;; | ||
*) | ||
printf "\n [!] Invalid option $1\n\n" | ||
USAGE | ||
exit 1 | ||
;; | ||
esac; shift | ||
done | ||
|
||
# --- Body -------------------------------------------------------------------- # | ||
|
||
# SCRIPT LOGIC GOES HERE | ||
|
||
exit 0 |