cl_corba_at wrote:
What is the "boost way" of parsing command line arguments?
When I searched the archives, some user recommended spirit for
task, but this seems to heavy-weighted for me.
I tried tokenizer, but a seperator for the command line is not provided. - you have to remove quotations marks (only escaped_list_separator can do this) - your have to ignore multiple tokens (only char_seperator can do this) If I write this seperator its still wouldn't provide the api I would like to see for a command line parser.
I saw in the past there have been an attemp by Bill Kempf to
a command line parser for boost but it didn't find its way into
Thanks a lot for this link. I am glad to see that there is a library into review process. When I checked the documentation, I saw that windows command line (WinMain - whole arguments without programm name in a C-string) are not supported. So someone has to use tokenizer to split the string into a vector and a seperator is still missing. CL --- In Boost-Users@yahoogroups.com, HartmutKaiser@t... wrote: this provide the
library from reasons I don't know.
So is there a recommended way to parse options I did overlook? Is a command line parser planned?
As far as I remember Vladimir Prus has requested Boost review for his program_options library. You can find it here:
http://zigzag.cs.msu.su:7813/program_options
I've used it for several applications and must say, that it is very simple, powerful and flexible to use.
Regards Hartmut