6

In C++, is there a well done, complete, open source implementation of a utility to parse the parameters of the main() function?

I wrote my own, and I saw many others around. But I was wandering if there is a better implementation available, which provides all the features expected from the corresponding executable.

Mat
  • 202,337
  • 40
  • 393
  • 406
Pietro
  • 12,086
  • 26
  • 100
  • 193

3 Answers3

5

Boost provides an open-source implementation with ProgramOptions.

Luchian Grigore
  • 253,575
  • 64
  • 457
  • 625
4
sehe
  • 374,641
  • 47
  • 450
  • 633
1

Take a look at this framework: CmdLine: a C++ option-parsing framework

dexametason
  • 1,133
  • 7
  • 16