☰
Debian Codegraph
@
1.5.5.8-1
/
/
examples
/
basic
/
args.ck
☽
☼
examples/basic/args.ck
code
plain
raw
GPL-2.0+
2004 Ge Wang and Perry R. Cook. All rights reserved.
debian/copyright
1
// shows getting command line arguments
2
// (example run: chuck args:1:2:foo)
3
4
// print number of args
5
<<< "number of arguments:", me.args() >>>;
6
7
// print each
8
for( int i; i < me.args(); i++ )
9
{
10
<<< " ", me.arg(i) >>>;
11
}