lib/halog/application.rb
def error_version_help
      if @parsed_options.show_version then
        $stdout.puts "#{@parser.program_name}: version #{HALog::VERSION}"
        exit 0
      elsif @parsed_options.show_help then
        $stdout.puts @parser.to_s
        exit 0
      elsif @error_message then
        $stderr.puts @error_message
        exit 1
      end
    end
# if Version or Help options are set, then output the appropriate information instead of 
# running the server.
if Version or Help options are set, then output the appropriate information instead of
running the server.
if Version or Help options are set then output the appropriate information instead of running the server .
def error_version_help
      if @parsed_options.show_version then
        $stdout.puts "#{@parser.program_name}: version #{HALog::VERSION}"
        exit 0
      elsif @parsed_options.show_help then
        $stdout.puts @parser.to_s
        exit 0
      elsif @error_message then
        $stderr.puts @error_message
        exit 1
      end
    end
def error_version_help if @parsed_options . show_version then $stdout . puts "#{@parser.program_name}: version #{HALog::VERSION}" exit 0 elsif @parsed_options . show_help then $stdout . puts @parser . to_s exit 0 elsif @error_message then $stderr . puts @error_message exit 1 end end
if Version or Help options are set, then output the appropriate information instead of
running the server.
if Version or Help options are set then output the appropriate information instead of running the server .