author | sr |
Thu, 14 Nov 2019 14:08:45 +0100 | |
changeset 1605 | 528dc481c788 |
parent 1510 | 328cf54d3850 |
permissions | -rwxr-xr-x |
1510 | 1 |
#!stx --script |
2 |
||
3 |
"/ shows command line arguments |
|
4 |
"/ |
|
5 |
"/ run with: |
|
6 |
"/ ./stc --script script0.stx one two three |
|
7 |
"/ or: |
|
8 |
"/ chmod +x stcript0.stx |
|
9 |
"/ ./stscript0.stx one two three |
|
10 |
||
11 |
'Command line arguments:' printCR. |
|
12 |
'_$0: ' print. _$0 printCR. |
|
13 |
'_$n: ' print. _$n printCR. |
|
14 |
1 to: _$n do:[:idx | |
|
15 |
('_$',idx asString,': ') print. (_$$ at:idx) printCR. |
|
16 |
]. |
|
17 |
'_$$: ' print. _$$ printCR. |