Class: Tokenizer::OptParse

Inherits:
Object
  • Object
show all
Defined in:
lib/tokenizer/opt_parse.rb

Class Method Summary collapse

Class Method Details

.parse(args) ⇒ Object



8
9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/tokenizer/opt_parse.rb', line 8

def OptParse.parse(args)

	@@options = {}
	parser = OptParse.create_parser # Klassen- keine Instanzmethode
	
	begin
		parser.parse(args)
		rescue OptionParser::InvalidArgument
		rescue OptionParser::InvalidOption => e
	STDERR.puts 'Falsche 0pt1on' # #{e.message}
	exit(1)
	end
end