root/lang/ruby/said/trunk/hey

Revision 4028, 176 bytes (checked in by ujihisa, 2 years ago)

lang/ruby/said: fix bugs and use optparse

  • Property svn:executable set to *
Line 
1#!/usr/bin/env ruby
2$: << File.dirname(__FILE__)
3require 'lib/hey'
4
5if ARGV.length == 0
6  puts "usage: hey <host> [<message>]"
7  exit!
8end
9
10Hey.run ARGV.shift, ARGV.join(' ')
Note: See TracBrowser for help on using the browser.