Command-line arguments: Difference between revisions
Content added Content deleted
m (→Using the Arg module: update link/formatting) |
m (Improve lang example: Replace "-langArgs" with "--") |
||
Line 1,430: | Line 1,430: | ||
</syntaxhighlight> |
</syntaxhighlight> |
||
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 (- |
The following example shows, how this can be achieved in Standard Lang (-- defines the start of the command line arguments for the lang program): |
||
<syntaxhighlight lang="shell"> |
<syntaxhighlight lang="shell"> |
||
$ lang cmdarg.lang - |
$ lang cmdarg.lang -- 2 abc test text |
||
</syntaxhighlight> |
</syntaxhighlight> |
||
{{out}} |
{{out}} |