Boost logo

Boost Users :

From: HartmutKaiser_at_[hidden]
Date: 2003-04-13 12:04:02


cl_corba_at wrote:

> What is the "boost way" of parsing command line arguments?
>
> When I searched the archives, some user recommended spirit for this
> 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 provide
> a command line parser for boost but it didn't find its way into 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


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net