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.39 lib/option_parser/optparse.rb
origen-0.7.38 lib/option_parser/optparse.rb
origen-0.7.37 lib/option_parser/optparse.rb
origen-0.7.36 lib/option_parser/optparse.rb
origen-0.7.35 lib/option_parser/optparse.rb
origen-0.7.34 lib/option_parser/optparse.rb
origen-0.7.33 lib/option_parser/optparse.rb
origen-0.7.32 lib/option_parser/optparse.rb
origen-0.7.31 lib/option_parser/optparse.rb
origen-0.7.30 lib/option_parser/optparse.rb
origen-0.7.29 lib/option_parser/optparse.rb
origen-0.7.28 lib/option_parser/optparse.rb
origen-0.7.27 lib/option_parser/optparse.rb
origen-0.7.26 lib/option_parser/optparse.rb
origen-0.7.25 lib/option_parser/optparse.rb
origen-0.7.24 lib/option_parser/optparse.rb
origen-0.7.23 lib/option_parser/optparse.rb
origen-0.7.22 lib/option_parser/optparse.rb
origen-0.7.21 lib/option_parser/optparse.rb
origen-0.7.20 lib/option_parser/optparse.rb