RosettaCodeData/Task/Command-line-arguments/Euphoria/command-line-arguments.euphoria

10 lines
275 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
constant cmd = command_line()
printf(1,"Interpreter/executable name: %s\n",{cmd[1]})
printf(1,"Program file name: %s\n",{cmd[2]})
if length(cmd)>2 then
puts(1,"Command line arguments:\n")
for i = 3 to length(cmd) do
printf(1,"#%d : %s\n",{i,cmd[i]})
end for
end if