Sha256: 8a6cb296e42eb25ba9510af75be1ec1c8c999f55d6285720e08bf18f65f2bbbd

Contents?: true

Size: 387 Bytes

Versions: 108

Compression:

Stored size: 387 Bytes

Contents

require 'optparse'
class OptionParser
  alias_method :orig_parse!, :parse!
  # Extend this method to save all original options so that they can
  # be later appended to any LSF submissions
  def parse!(*args)
    lsf_options = ARGV.dup
    orig_parse!(*args)
    lsf_options -= ARGV  # Now contains all original options
    Origen.app.lsf_manager.command_options = lsf_options
  end
end

Version data entries

108 entries across 108 versions & 1 rubygems

Version Path
origen-0.7.19 lib/option_parser/optparse.rb
origen-0.7.18 lib/option_parser/optparse.rb
origen-0.7.17 lib/option_parser/optparse.rb
origen-0.7.16 lib/option_parser/optparse.rb
origen-0.7.15 lib/option_parser/optparse.rb
origen-0.7.14 lib/option_parser/optparse.rb
origen-0.7.13 lib/option_parser/optparse.rb
origen-0.7.12 lib/option_parser/optparse.rb
origen-0.7.11 lib/option_parser/optparse.rb
origen-0.7.10 lib/option_parser/optparse.rb
origen-0.7.9 lib/option_parser/optparse.rb
origen-0.7.8 lib/option_parser/optparse.rb
origen-0.7.7 lib/option_parser/optparse.rb
origen-0.7.6 lib/option_parser/optparse.rb
origen-0.7.5 lib/option_parser/optparse.rb
origen-0.7.4 lib/option_parser/optparse.rb
origen-0.7.3 lib/option_parser/optparse.rb
origen-0.7.2 lib/option_parser/optparse.rb
origen-0.7.1 lib/option_parser/optparse.rb
origen-0.7.0 lib/option_parser/optparse.rb