summaryrefslogtreecommitdiff
path: root/sample/t1.rb
blob: 98d3b529e9359b3c75b135c0f8e70af27c4094e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
def test(a1, *a2)
 while 1
  switch gets()
  case nil
    break
  case /^-$/
    print("-\n")
    return
  case /^-help/
    print("-help\n")
    break
  end
 end
 print(a1, a2, "\n")
end

print($ARGV, "\n")
print("in: ")
test(1)
print("end\n")