lib/daemon-ogre/argv.rb in daemon-ogre-2.1.2 vs lib/daemon-ogre/argv.rb in daemon-ogre-2.1.3

- old
+ new

@@ -3,10 +3,10 @@ module DARGV class << self def check_args_for( *args ) args = args.map(&:to_s) - return ::ARGV.any?{|argument| args.any?{|string_to_find| argument =~ Regexp.new(string_to_find.to_s) }} + return ::ARGV.any?{|argument| args.any?{|string_to_find| argument =~ /--?#{string_to_find.to_s}$/ }} end @@daemon_keys= [:daemonize,:daemon,:d] def daemonize? check_args_for( *@@daemon_keys )