From 5ba68c2fe8fdefa4eff71df35e00fd70bc332ba1 Mon Sep 17 00:00:00 2001 From: soulgalore Date: Sun, 10 Nov 2013 22:52:55 +0100 Subject: [PATCH] added version --- bin/sitespeed.io | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bin/sitespeed.io b/bin/sitespeed.io index 603a4e07e..f7554dafb 100755 --- a/bin/sitespeed.io +++ b/bin/sitespeed.io @@ -174,7 +174,7 @@ fi #******************************************************* function get_input { # Set options -while getopts “hu:d:f:s:o:m:b:n:p:r:z:x:g:t:a:v:y:l:c:j:e:i:q:k:” OPTION +while getopts “hu:d:f:s:o:m:b:n:p:r:z:x:g:t:a:v:y:l:c:j:e:i:q:k:V” OPTION do case $OPTION in h) @@ -203,6 +203,10 @@ do j)MAX_PAGES=$OPTARG;; k)SCREENSHOT=$OPTARG;; c)COLLECT_BROWSER_TIMINGS=$OPTARG;; + V) + echo $SITESPEED_VERSION + exit 0 + ;; # Note: The e & i are uses in the script that analyzes multiple sites e);;