you can find an example following this link :
http://cartan.cas.suffolk.edu/moin/O...ngvisitor.html

ArgumentList is part of a library that gets the console arguments.
You can download it from the same website. Look for the utils.tar.gz file.

Once you have the arguments, you can do what ever you like with them.

Cheers