I am looking for a command line parser for Qt4.
I did a small google search, and found this: http://www.froglogic.com/pg?id=PublicationsFreeware&category=getopt how
Also for some fancy options parsing you can try gperf.
IBM has a nice tutorial on it.