Sha256: 96327db386fcb4f54fc53b5ed7e5b80de7c0663cac45f79de6ff4fb94e4b335d

Contents?: true

Size: 725 Bytes

Versions: 2

Compression:

Stored size: 725 Bytes

Contents

#!/usr/bin/env ruby

require 'difects'

if ARGV.delete('-h') or ARGV.delete('--help')
  # try to display UNIX version of help manual
  man_path = File.join(DIFECTS::INSTDIR, 'man')
  unless system 'man', '-M', man_path, '-a', 'difects'
    # 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 #{DIFECTS::WEBSITE}"
    end
  end
  exit
elsif ARGV.delete('-v') or ARGV.delete('--version')
  puts DIFECTS::VERSION
  exit
end

DIFECTS.debug = ARGV.delete('-d') || ARGV.delete('--debug')

require 'difects/auto'
ARGV.each {|glob| Dir[glob].each {|test| load test } }

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
difects-3.0.1 bin/difects
difects-3.0.0 bin/difects