Parse command-line arguments: Difference between revisions
Content deleted Content added
Added Kotlin |
|||
Line 267: | Line 267: | ||
Other concepts are also possible... |
Other concepts are also possible... |
||
=={{header|Kotlin}}== |
|||
<lang scala>// version 1.0.6 (packaged as parse_cla.jar) |
|||
fun main(args: Array<String>) = println(args.asList())</lang> |
|||
{{out}} |
|||
<pre> |
|||
c:\kotlin-compiler-1.0.6>java -jar parse_cla.jar nc -v -n -z -w 1 192.168.1.2 1-1000 |
|||
[nc, -v, -n, -z, -w, 1, 192.168.1.2, 1-1000] |
|||
</pre> |
|||
=={{header|Mathematica}}== |
=={{header|Mathematica}}== |