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.20.3 lib/option_parser/optparse.rb
origen-0.20.2 lib/option_parser/optparse.rb
origen-0.20.1 lib/option_parser/optparse.rb
origen-0.20.0 lib/option_parser/optparse.rb
origen-0.13.0 lib/option_parser/optparse.rb
origen-0.12.1 lib/option_parser/optparse.rb
origen-0.12.0 lib/option_parser/optparse.rb
origen-0.11.0 lib/option_parser/optparse.rb
origen-0.10.1 lib/option_parser/optparse.rb
origen-0.9.1 lib/option_parser/optparse.rb
origen-0.9.0 lib/option_parser/optparse.rb
origen-0.8.0 lib/option_parser/optparse.rb
origen-0.7.47 lib/option_parser/optparse.rb
origen-0.7.46 lib/option_parser/optparse.rb
origen-0.7.45 lib/option_parser/optparse.rb
origen-0.7.44 lib/option_parser/optparse.rb
origen-0.7.43 lib/option_parser/optparse.rb
origen-0.7.42 lib/option_parser/optparse.rb
origen-0.7.41 lib/option_parser/optparse.rb
origen-0.7.40 lib/option_parser/optparse.rb