$ cat testargv.rb
p ARGV

$ shoes testargv.rb
["testargv.rb"]

$ ruby testargv.rb
[]

$ shoes testargv.rb -1
invalid option: -1

$ ruby testargv.rb -1
["-1"]

Reply via email to