Course of Raku / Essentials / Positional data types / Exercises

Print command-line arguments

Task

Write a program that prints all the arguments it gets from the command line. Print them one per line.

Example

This is how the program is supposed to work:

$ raku print-command-line-arguments.raku words to display
words
to
display

Solution

See the solution

Course navigation

Solution: The number of command-line arguments   |   Solution: Print command-line arguments

Translations of this page: EnglishDeutschEspañolItalianoLatviešuNederlandsБългарскиРусскийУкраїнська