Sha256: 600bcc4cc62edff94d4afd28a3c28aa24866c1dc8f4e1a92e47fb7a6ce161e22
Contents?: true
Size: 486 Bytes
Versions: 1
Compression:
Stored size: 486 Bytes
Contents
require 'optparse' module TestFileFinder Options = Struct.new(:mapping_file) class OptionParser def self.parse!(argv) Options.new.tap do |options| ::OptionParser.new do |opts| opts.banner = "Usage: tff [options] [...file_paths]" opts.on('-f', '--mapping-file FILE', String, 'Use a custom test mapping file') do |mapping_file| options.mapping_file = mapping_file end end.parse!(argv) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
test_file_finder-0.1.0 | lib/test_file_finder/option_parser.rb |