Command-line arguments: Difference between revisions
Add lang example
Jazzedpineda (talk | contribs) (Omitted EasyLang) |
(Add lang example) |
||
Line 1,420:
{{out}}
See Java output.
=={{header|Lang}}==
In lang command line arguments are stored in &LANG_ARGS.
<syntaxhighlight lang="lang">
$ele
foreach($[ele], &LANG_ARGS) {
fn.println($ele)
}
</syntaxhighlight>
Calling a lang program with command line arguments depends on the implementation.
The following example shows, how this can be achieved in Standard Lang (-langArgs defines the start of the command line arguments for the lang program):
<pre>
lang cmdarg.lang -langArgs 2 abc test text
</pre>
{{out}}
<pre>
2
abc
test
text
</pre>
=={{header|Lasso}}==
|