# File lib/mongrel/command.rb, line 55
55:       def initialize(options={})
56:         argv = options[:argv] || []
57:         @opt = OptionParser.new
58:         @opt.banner = Mongrel::Command::BANNER
59:         @valid = true
60:         # this is retarded, but it has to be done this way because -h and -v exit
61:         @done_validating = false
62:         @original_args = argv.dup
63: 
64:         configure
65: 
66:         # I need to add my own -h definition to prevent the -h by default from exiting.
67:         @opt.on_tail("-h", "--help", "Show this message") do
68:           @done_validating = true
69:           puts @opt
70:         end
71: 
72:         # I need to add my own -v definition to prevent the -v from exiting by default as well.
73:         @opt.on_tail("--version", "Show version") do
74:           @done_validating = true
75:           if VERSION
76:             puts "Version #{Mongrel::Const::MONGREL_VERSION}"
77:           end
78:         end
79: 
80:         @opt.parse! argv
81:       end