lib/origen/commands/lsf.rb in origen-0.24.0 vs lib/origen/commands/lsf.rb in origen-0.25.0
- old
+ new
@@ -1,6 +1,7 @@
require 'optparse'
+require 'origen/commands/helpers'
options = {}
def require_type_or_id(options)
unless options[:id] || options[:type]
@@ -53,12 +54,11 @@
opts.on('-i', '--id ID', String, 'Job ID to apply the requested action to') { |t| options[:id] = t }
opts.on('-w', '--wait', 'Wait for LSF processing to complete') { options[:wait_for_lsf_completion] = true }
# opts.on("-e", "--execute", "Execute....") { options[:execute] = true }
opts.on('-m', '--mode MODE', Origen::Mode::MODES, 'Force the Origen operating mode:', ' ' + Origen::Mode::MODES.join(', ')) { |_m| }
opts.on('-d', '--debugger', 'Enable the debugger') { options[:debugger] = true }
- app_options.each do |app_option|
- opts.on(*app_option) {}
- end
+ # Apply any application option extensions to the OptionParser
+ Origen::CommandHelpers.extend_options(opts, app_options, options)
opts.separator ''
opts.on('-h', '--help', 'Show this message') { puts opts; exit }
end
opt_parser.parse! ARGV