Mega Code Archive

 
Categories / Ruby / Development
 

Get command line input through ARGV

n = ARGV.size argstr = '"' + ARGV*"," + '"' puts "#{n} arguments..." puts "They are: #{argstr}" puts "Note that ARGV[0] = #{ARGV[0]}"