null+****@clear*****
null+****@clear*****
2012年 3月 6日 (火) 15:48:14 JST
Kouhei Sutou 2012-03-06 15:48:14 +0900 (Tue, 06 Mar 2012)
New Revision: 55ac23509f4dac7147656df5bcec5da978f549f9
Log:
Support --version
Modified files:
bin/groonga-test
Modified: bin/groonga-test (+8 -0)
===================================================================
--- bin/groonga-test 2012-03-06 15:15:30 +0900 (cfd7f11)
+++ bin/groonga-test 2012-03-06 15:48:14 +0900 (af336a2)
@@ -24,6 +24,8 @@ require "json"
require "shellwords"
class GroongaTester
+ VERSION = "1.0.0"
+
attr_accessor :groonga, :base_directory, :diff, :diff_options
def initialize
@groonga = "groonga"
@@ -550,5 +552,11 @@ parser.on("--diff-option=OPTION",
diff_option_is_specified = true
end
+parser.on("--version",
+ "Show version and exit") do
+ puts(GroongaTester::VERSION)
+ exit(true)
+end
+
targets = parser.parse!
exit(tester.run(*targets))