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"
15 opts.on( '-v', '--verbose' ) do
16 options[ :verbose ] = true
19 opts.on( '-I', '--stream_in FILE', Time ) do |arg|
20 options[:stream_in] = arg
23 # opts.on( '-I', '--stream_in FILE', "Mandatory argument" ) do |arg|
24 # options[:stream_in] = arg
27 opts.on( '-O', '--stream_out FILE', "Mandatory argument" ) do |arg|
28 options[:stream_out] = arg
34 pp "Options:", options
37 if ARGV.length == 0 then
38 biopiece = $0.split( "/" ).last
39 exec "print_wiki --data_in #{ ENV[ 'BP_DIR' ] }/bp_usage/#{ biopiece }.wiki"