Sha256: 8bb46ac4ef66ddca6176bc66b32a8dee5265bcfb5c0dddf3482ccff1095d67a2
Contents?: true
Size: 643 Bytes
Versions: 1
Compression:
Stored size: 643 Bytes
Contents
#!/usr/bin/env ruby require 'rubygems' require 'dupe-magick' require 'optparse' options = {} OptionParser.new do |opts| opts.banner = "Usage: dupes [options]" opts.separator "" opts.separator "Specific options:" opts.on("-s source-file", "--source-file", String, "Specify source file to base search on") do |s| options[:source_file] = s || nil end opts.on("-t target-path", "--target-path", String, "Specify target path to conduct search in") do |t| options[:target_path] = t end end.parse! comparison = DupeMagick.new comparison.find_duplicates(options[:source_file], options[:target_path])
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dupe-magick-1.0.1 | bin/dupes |