Module: DTK::Client::Execute::Script::OptionParserHelper
- Included in:
- DTK::Client::Execute::Script
- Defined in:
- lib/execute/script.rb
Instance Method Summary collapse
Instance Method Details
#process_params_from_options(banner, &block) ⇒ Object
48 49 50 51 52 53 |
# File 'lib/execute/script.rb', line 48 def (,&block) OptionParser.new do |opts| opts. = block.call(opts) end.parse! end |
#show_help_and_exit(banner) ⇒ Object
55 56 57 58 59 60 |
# File 'lib/execute/script.rb', line 55 def show_help_and_exit() ARGV[0] = '--help' OptionParser.new do |opts| opts. = end.parse! end |