Class: ByebugCleaner::ArgumentParser

Inherits:
Object
  • Object
show all
Defined in:
lib/byebug/cleaner/parser.rb

Defined Under Namespace

Classes: Options

Instance Method Summary collapse

Instance Method Details

#parse(args) ⇒ Object

Return a structure describing the options.



67
68
69
70
71
72
73
74
75
76
77
# 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