serverlist.rb
Path: srv/serverlist.rb
Modified: Sun Apr 06 11:50:25 MDT 2003
Required files
optparse    shellwords    optparse    shellwords    util/config    util/clientutils   
Methods
main    start   
Classes and Modules
Class SrvLstOptions
Included modules
Clientutils
Public Instance methods
main(optvals, args)

main(): application itself starts here.

# File srv/serverlist.rb, line 57
def main(optvals, args)

  players = list_players

  if players.nil?
    return 1
  else
    players.each { |s| p s }
  end

  return 0

end
start(av)

Entry point if called as executable.

# File srv/serverlist.rb, line 159
def start(av)
  opts = SrvLstOptions.new(USAGE, BANNER)
  main(opts.vals, opts.parse(av))
end