Skip to content
This repository has been archived by the owner on Apr 3, 2018. It is now read-only.

Commit

Permalink
Add version argument
Browse files Browse the repository at this point in the history
  • Loading branch information
funilrys committed Jul 22, 2017
1 parent 6a62325 commit 94db5bd
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions funceble
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,9 @@ numberOfInvalid=0

# Default seconds before timeout
secondsBeforeTimeout=30

# Version number
versionNumber='1.4.0'
################################################################################

# _______ _ _______ __________________ _______ _ _______
Expand Down Expand Up @@ -1389,6 +1392,7 @@ usage()
echo " --noUnified -nu Deactivate the production of result.txt as unified result under the output directory (${red}${bold}Must be before ${cyan}-d${normal} ${red}${bold}or ${cyan}-f${normal})"
echo " --split Split output files (${red}${bold}Must be before ${cyan}-d${normal} ${red}${bold}or ${cyan}-f${normal})"
echo " --timeout -t Seconds before timeout (${red}${bold}Must be before ${cyan}-d${normal} ${red}${bold}or ${cyan}-f${normal})"
echo " --version -v Show the current version of Funceble"
echo ""
echo "Examples:"
echo ""
Expand Down Expand Up @@ -1515,6 +1519,12 @@ else
shift 2
;;

# We catch if we have to show the version number
-v|--version)
echo "Current Version: ${versionNumber}"
exit 1
;;

# catch the domain after --domain= for example: --domain=helloworld.com
# Will result only helloworld.com
--domain=*)
Expand Down

0 comments on commit 94db5bd

Please sign in to comment.