Command-line arguments

Command line arguments are available in the ARGV array.

say ARGV

Output:

% myprog -c "alpha beta" -h "gamma"
['-c', 'alpha beta', '-h', 'gamma']

Last updated