Method: Server#parse_arguments

Defined in:
lib/server/argument_parser.rb

#parse_arguments(arguments_parser = ::Server::ArgumentsParser.new) ⇒ Object

class ArgumentsParser



97
98
99
100
101
102
103
# File 'lib/server/argument_parser.rb', line 97

def parse_arguments(arguments_parser = ::Server::ArgumentsParser.new)
  arguments_parser.parser.parse!(ARGV)
  arguments_parser.options
rescue OptionParser::InvalidArgument, OptionParser::InvalidOption,
       OptionParser::AmbiguousOption => e
  abort e.message
end