examples/example1.rb in snp-search-0.29.0 vs examples/example1.rb in snp-search-0.30.0
- old
+ new
@@ -8,11 +8,11 @@
opts = Slop.new :help do
banner "ruby query.rb [OPTIONS]"
on :V, :verbose, 'Enable verbose mode'
- on :d, :database=, 'The name of the database you like to query', true
+ on :D, :database=, 'The name of the database you like to query', true
on :o, :outfile=, 'output file, in fasta format', true
on :s, :strain=, 'The strains/samples you like to query', true
on :a, :annotation=, 'The gene you like to remove from analysis', true
on_empty do
@@ -20,10 +20,10 @@
end
end
opts.parse
puts "You must supply the -s option, it's a required field" and exit unless opts[:strain]
- puts "You must supply the -d option, it's a required field" and exit unless opts[:database]
+ puts "You must supply the -D option, it's a required field" and exit unless opts[:database]
begin
puts "#{opts[:database]} file does not exist!" and exit unless File.exist?(opts[:database])
rescue
end