lib/tdp/application.rb
# Read and handle the command line options.
Read and handle the command line options.
Read and handle the command line options .
def handle_options
      options.tdplib = ['tdplib']
      options.templates = []
      OptionParser.new do |opts|
        opts.banner = "tdp [-f tdp_file] {options} targets..."
        opts.separator ""
        opts.separator "Options are ..."
        opts.on_tail("-h", "--help", "-H", "Display this help message.") do
          puts opts
          exit
        end
        standard_tdp_options.each { |args| opts.on(*args) }
        opts.environment('TDPOPT')
      end.parse!
    end
def handle_options options . tdplib = [ 'tdplib' ] options . templates = [ ] OptionParser . new do | opts | opts . banner = "tdp [-f tdp_file] {options} targets..." opts . separator "" opts . separator "Options are ..." opts . on_tail ( "-h" , "--help" , "-H" , "Display this help message." ) do puts opts exit end standard_tdp_options . each { | args | opts . on ( * args ) } opts . environment ( 'TDPOPT' ) end . parse! end
Read and handle the command line options.
Read and handle the command line options .