summaryrefslogtreecommitdiff
path: root/blaquiz.php
diff options
context:
space:
mode:
authorSBeans <info@kayakporn.com>2012-12-14 11:56:12 +0000
committerSBeans <info@kayakporn.com>2012-12-14 11:56:12 +0000
commit8fe92fbd54eecccb8df8a8e51615070c6c6c99af (patch)
treed1e63813765d68c05218469a462b746283713629 /blaquiz.php
parent1cbbc96ab45bc75231fb9918eef6799c1e1fc4c6 (diff)
Added -v for versionHEADmaster
Diffstat (limited to 'blaquiz.php')
-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]";