Sha256: 4fb5ab237662cce63af1bd37e6b9208fd8f773e6e25be036535bdb8d915aca40
Contents?: true
Size: 601 Bytes
Versions: 88
Compression:
Stored size: 601 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 # Pick whether we should be using the application's LSF instance or Origen's # global LSF instance if Origen.running_globally? Origen.lsf_manager.command_options = lsf_options else Origen.app.lsf_manager.command_options = lsf_options end end end
Version data entries
88 entries across 88 versions & 1 rubygems