Possible Duplicates:
What parameter parser libraries are there for C++?
C++ Parse Command Line Arguments
What is the best C++ command line argument parser that you can suggest?
Possible Duplicates:
What parameter parser libraries are there for C++?
C++ Parse Command Line Arguments
What is the best C++ command line argument parser that you can suggest?
I like C's getopt(), but then I'm old. :-)
Boost program_options.
Google's gflags
Try Boost::Program Options. It allows you to read and parse command lines as well as config files.