Skip to content

Commit

Permalink
add version option
Browse files Browse the repository at this point in the history
  • Loading branch information
demanast@triangle committed Oct 23, 2017
1 parent a948c47 commit 09e8e9e
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 5 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,17 @@ Many parameters configured at `default-param` file.

* `-ctext <path to file>` : Plot Custom text. Config custom text file.

* `-logogmt`: Plot GMT logo and time stamp.

* `-logocus`: Plot custom logo of your organization.

* `-h`: Help menu

* `-v`: Plot version

* `-debug`:Enable Debug option

* `-logogmt`: Plot GMT logo and time stamp.

* `-logocus`: Plot custom logo of your organization.

### Plot fault parameters

Expand Down
16 changes: 13 additions & 3 deletions coulomb2gmt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,10 @@ function help {
echo " -mt <title> [:= map title] title map default none use quotes"
echo " -ctext <file>[:=cusotm text] Plot custom text in map"
echo " -h [:= help] help menu"
echo " -debug [:=DEBUG] enable debug option"
echo " -logogmt [:=gmt logo] Plot gmt logo and time stamp"
echo " -logocus [:=custom logo] Plot custom logo of your organization"
echo " -v [:version] Plots script release"
echo " -debug [:=DEBUG] enable debug option"
echo ""
echo "/*** PLOT FAULT PARAMETERS ****************************************************/"
echo " -fproj [:=Fault projection] "
Expand Down Expand Up @@ -192,6 +193,10 @@ then
if [ "$1" == "-h" ];
then
help
elif [ "$1" == "-v" ];
then
echo "version: "$VERSION
exit 1
else
echo "[ERROR] Not enough input arguments."
echo "[STATUS] Script Finished Unsuccesful! Exit Status 1"
Expand Down Expand Up @@ -285,11 +290,11 @@ then
shift
elif [ $# -gt 3 ] && [ ${4:0:1} == \- ];
then
echo "[WARNING] Not output file name set"
echo "[WARNING] No output file name set. Default name used."
shift
elif [ $# -eq 3 ];
then
echo "[WARNING] Not output file name set"
echo "[WARNING] No output file name set. Default name used."
shift
fi
;;
Expand Down Expand Up @@ -462,6 +467,11 @@ then
-h)
help
;;
-v)
echo "version: "$VERSION
exit 1
shift
;;
-*)
echo "[ERROR] Bad argument structure. argument \"$3\" is not right"
echo "[STATUS] Script Finished Unsuccesful! Exit Status 1"
Expand Down

0 comments on commit 09e8e9e

Please sign in to comment.