Ramiro Rodriguez wrote:[color=blue]
> In C there is a function to easily parse command line arguments called
> getopt. Is there such a function in c++[/color]
you may want to try GNU Gengetopt that I personally maintain:
http://www.gnu.org/software/gengetopt/
This program generates a C function that uses getopt_long function to
parse the command line options, to validate them and fills a struct
I use it also inside C++ programs :-)
hope this helps
Lorenzo
--
+-----------------------------------------------------+
| Lorenzo Bettini ICQ# lbetto, 16080134 |
| PhD in Computer Science |
| Dip. Sistemi e Informatica, Univ. di Firenze |
| Tel +39 055 4796741, Fax +39 055 4796730 |
| Florence - Italy (GNU/Linux User # 158233) |
| Home Page :
http://www.lorenzobettini.it |
|
http://music.dsi.unifi.it XKlaim language |
|
http://www.lorenzobettini.it/purple Cover Band |
|
http://www.gnu.org/software/src-highlite |
|
http://www.gnu.org/software/gengetopt |
|
http://www.lorenzobettini.it/software/gengen |
+-----------------------------------------------------+