Command-line arguments: Difference between revisions
Content added Content deleted
Mercerenies (talk | contribs) (Add Prolog) |
(Jakt) |
||
Line 1,298: | Line 1,298: | ||
In a non-interactive context, we would instead use <code>echo ARGV</code>. |
In a non-interactive context, we would instead use <code>echo ARGV</code>. |
||
=={{header|Jakt}}== |
|||
The main function can recieve the command line arguments as an arbitrarily named array of String. argv[0] will be the name of the program. |
|||
<syntaxhighlight lang="jakt"> |
|||
fn main(arguments: [String]) { |
|||
println("{}", arguments) |
|||
} |
|||
</syntaxhighlight> |
|||
=={{header|Java}}== |
=={{header|Java}}== |