lib/retest/options.rb in retest-1.11.0 vs lib/retest/options.rb in retest-1.12.0
- old
+ new
@@ -83,10 +83,16 @@
short "-h"
long "--help"
desc "Print usage"
end
+ flag :version do
+ short "-v"
+ long "--version"
+ desc "Print retest version"
+ end
+
option :polling do
long '--polling'
desc <<~DESC.strip
Use polling method when listening to file changes
Some filesystems won't work without it
@@ -129,9 +135,13 @@
parse args
end
def help?
params[:help]
+ end
+
+ def version?
+ params[:version]
end
def full_suite?
params[:all]
end
\ No newline at end of file