Parse command-line arguments: Difference between revisions

Content deleted Content added
Petelomax (talk | contribs)
Hakank (talk | contribs)
Line 518:
{"p2js","file:///C:/Program%20Files%20(x86)/Phix/pwa/test.htm"}
</pre>
 
=={{header|Picat}}==
The arguments to a Picat programs are available via <code>main/1</code> as a list of strings.
<lang Picat>main(ARGS) =>
println(ARGS).
main(_) => println(after),true.</lang>
 
{{out}}
<pre>$ picat command_line_arguments.pi nc -v -n -z -w 1 192.168.1.2 1-1000
[nc,-n,-z,-w,1,192.168.1.2,1-1000]</pre>
 
=={{header|PicoLisp}}==