argv/argv_basic.rb

tests/_examples/argv/argv_basic.rb in the metorex repository.

puts ARGV.length
ARGV.each do |arg|
  puts arg
end