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
  • 195,986
  • 40
  • 382
  • 396
Pietro
  • 11,309
  • 24
  • 88
  • 179

3 Answers3

5

Boost provides an open-source implementation with ProgramOptions.

Luchian Grigore
  • 245,575
  • 61
  • 446
  • 609
4
sehe
  • 350,152
  • 45
  • 431
  • 590
1

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

dexametason
  • 1,133
  • 7
  • 16