Sha256: ad43ce2e79e9ce72be5e5ef5ac66e749664cb6feaacb75cb48941b79dbe74465
Contents?: true
Size: 789 Bytes
Versions: 1
Compression:
Stored size: 789 Bytes
Contents
#!/usr/bin/env ruby require 'dfect' if ARGV.delete('-h') or ARGV.delete('--help') # try to display UNIX version of help manual man_path = File.join(Dfect::INSTDIR, 'man') unless system 'man', '-M', man_path, '-a', 'dfect' # try to display HTML version of help manual man_html = man_path + '.html' unless %w[$BROWSER open start].any? {|b| system "#{b} #{man_html}" } # no luck; direct user to project website puts "See #{Dfect::WEBSITE}" end end exit elsif ARGV.delete('-v') or ARGV.delete('--version') puts Dfect::VERSION exit end Dfect.options[:debug] = ARGV.delete('-d') || ARGV.delete('--debug') Dfect.options[:quiet] = ARGV.delete('-q') || ARGV.delete('--quiet') require 'dfect/auto' ARGV.each {|glob| Dir[glob].each {|test| load test } }
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dfect-2.2.0 | bin/dfect |