Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Parsing parameters to main()

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.

like image 993
Pietro Avatar asked Mar 30 '12 13:03

Pietro


2 Answers

Boost provides an open-source implementation with ProgramOptions.

like image 56
Luchian Grigore Avatar answered Sep 30 '22 11:09

Luchian Grigore


  • getopt
  • boost program options
  • Poco OptionSet/OptionProcessor
like image 42
sehe Avatar answered Sep 30 '22 11:09

sehe