Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to just get a list of command-line arguments in Crystal lang

I'm a newbie in Crystal lang, and I just wanted to know how to get a list (array) of command-line arguments in Crystal. I am aware that there's OptionParser. But I just want to get a list of arguments users typed in.

like image 712
bichanna Avatar asked Oct 18 '25 11:10

bichanna


1 Answers

I found it. It's just as easy as this:

puts(ARGV)
like image 137
bichanna Avatar answered Oct 20 '25 03:10

bichanna