From 8fe92fbd54eecccb8df8a8e51615070c6c6c99af Mon Sep 17 00:00:00 2001 From: SBeans Date: Fri, 14 Dec 2012 11:56:12 +0000 Subject: Added -v for version --- blaquiz.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/blaquiz.php b/blaquiz.php index 276207c..c1ce877 100644 --- a/blaquiz.php +++ b/blaquiz.php @@ -6,8 +6,9 @@ // Version History // 0.0.1 Created blaquiz.php // 0.0.2 Added for questions and answers + // 0.0.3 Added -v for version - $version = "BlaQuiz Version: 0.0.2"; + $version = "BlaQuiz Version: 0.0.3"; $questions = array ( "How many bits in a byte?", @@ -51,6 +52,9 @@ { switch ($stdin[0]) { + case "-v": + $out = $version; + break; case "-q": $id = rand(0,sizeof($questions) - 1); $out = "ID: $id $questions[$id]"; -- cgit v1.2.3