Skip to content

Commit

Permalink
feat(Version): print version number
Browse files Browse the repository at this point in the history
  • Loading branch information
fjcaetano committed Oct 2, 2019
1 parent 8098390 commit 20f6fae
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions bin/ios-simulator-gif
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# Records iOS simulator screen and saves as a gif to simulator.gif
# A new file name may be passed as argument

PKG_VERSION="1.1.0"
RED="\033[1;31m"
GREEN="\033[1;32m"
CLEAR="\033[0m"
Expand Down Expand Up @@ -115,6 +116,10 @@ parse_args() {
display_help
shift
;;
-v|--version)
echo "${PKG_VERSION}"
exit 0
;;
--)
EXTRA="${@:2}"
shift
Expand Down Expand Up @@ -148,6 +153,7 @@ display_help() {
echo " -f, --format Output format (default: gif)"
echo " -vf, --video-filter Video filter for ffmpeg (default: scale=320:-1)"
echo " -h, --help Outputs this help message"
echo " -v, --version Outputs the version number"
echo
exit 0
}
Expand Down

0 comments on commit 20f6fae

Please sign in to comment.