]> git.donarmstrong.com Git - biopieces.git/blob - bp_bin/swapcase_seq
minor changes
[biopieces.git] / bp_bin / swapcase_seq
1 #!/usr/bin/env ruby
2
3 require 'optparse'
4 require 'pp'
5
6 options = {}
7
8 optparse = OptionParser.new do |opts|
9   opts.on( '-?', '--help', 'Display this screen' ) do
10                 biopiece = $0.split( "/" ).last
11                 exec "print_wiki --data_in #{ ENV[ 'BP_DIR' ] }/bp_usage/#{ biopiece }.wiki --help"
12     exit
13   end
14
15         opts.on( '-v', '--verbose' ) do
16                 options[ :verbose ] = true
17         end
18
19         opts.on( '-I', '--stream_in FILE', Time ) do |arg|
20                 options[:stream_in] = arg
21         end
22
23 #       opts.on( '-I', '--stream_in FILE', "Mandatory argument" ) do |arg|
24 #               options[:stream_in] = arg
25 #       end
26
27         opts.on( '-O', '--stream_in FILE', "Mandatory argument" ) do |arg|
28                 options[:stream_out] = arg
29         end
30 end
31
32 optparse.parse!
33
34 pp "Options:", options
35 pp "ARGV:", ARGV
36
37 if ARGV.length == 0 then
38         biopiece = $0.split( "/" ).last
39         exec "print_wiki --data_in #{ ENV[ 'BP_DIR' ] }/bp_usage/#{ biopiece }.wiki"
40 end