lib/dirwatch/options/parser.rb in dirwatch-0.0.3 vs lib/dirwatch/options/parser.rb in dirwatch-0.0.4

- old
+ new

@@ -90,9 +90,13 @@ super do |opts| opts.on '-d', '--[no-]daemonize', 'Run the programm as a daemon' do |daemonize| options.daemonize = daemonize end + opts.on '--once', 'Run the programm only once' do |once| + options.once = once + end + opts.on '--version', 'Show the version' do require 'dirwatch/version' puts "dirwatch #{Dirwatch::VERSION}" throw :exit, 0 end