class ByebugCleaner::ArgumentParser

Public Instance Methods

parse(args) click to toggle source

Return a structure describing the options.

# File lib/byebug/cleaner/parser.rb, line 67
def parse(args)
  # The options specified on the command line will be collected in
  # *options*.
  @options = Options.new
  opt_parser = OptionParser.new  do |parser|
    @options.define_options(parser)
  end
  opt_parser.parse!(args)
  
  @options
end