maybe you should consider using Getopt anyway, coz' it makes it much easier to parse arguments, especialy if you use flags (like: -e, -f, --mode etc.), that expect special values after them. it probably depends on your program.
If you need any help I just wrote a command line interface for my product at work so maybe I'll have a few hints for you.