Pietro
Pietro

Reputation: 13220

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.

Upvotes: 6

Views: 1809

Answers (3)

sehe
sehe

Reputation: 393759

Upvotes: 4

Luchian Grigore
Luchian Grigore

Reputation: 258648

Boost provides an open-source implementation with ProgramOptions.

Upvotes: 5

dexametason
dexametason

Reputation: 1133

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

Upvotes: 1

Related Questions