Command Line Argument Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

ARGV

A

Any command-line arguments after the program filename are available to your Ruby program in the global array ARGV. For instance, invoking Ruby as % ruby -w ptest “Hello World” a1 1.6180 yields an ARGV array containing [“Hello World”, a1, 1.6180]

How well did you know this?
1
Not at all
2
3
4
5
Perfectly