summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--blaquiz.php6
1 files changed, 5 insertions, 1 deletions
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]";