Command-line arguments: Difference between revisions

Content added Content deleted
(Add lang example)
m (Improve shell code for calling a lang program)
Line 1,431: Line 1,431:
Calling a lang program with command line arguments depends on the implementation.
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):
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):
<syntaxhighlight lang="shell">
<pre>
lang cmdarg.lang -langArgs 2 abc test text
$ lang cmdarg.lang -langArgs 2 abc test text
</syntaxhighlight>
</pre>
{{out}}
{{out}}
<pre>
<pre>