# File lib/fastcst/command.rb, line 27
27:     def initialize(argv, options)
28:         @opt = OptionParser.new
29:         @valid = true
30:         # this is retarded, but it has to be done this way because -h and -v exit
31:         @done_validating = false
32: 
33:         # process the given options array
34:         options.each do |short, long, help, variable|
35:             @opt.on(short, long, help) do |arg|
36:                 self.instance_variable_set(variable, arg)
37:             end
38:         end
39:         
40:         # I need to add my own -h definition to prevent the -h by default from exiting.
41:         @opt.on_tail("-h", "--help", "Show this message") do
42:             @done_validating = true
43:             puts @opt
44:         end
45: 
46:         # I need to add my own -v definition to prevent the -h from exiting by default as well.
47:         @opt.on_tail("--version", "Show version") do
48:             @done_validating = true
49:             puts "No version yet."
50:         end
51: 
52:         @opt.parse! argv
53:         
54:     end