Boost logo

Boost Users :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2005-02-28 04:04:14


Julio M. Merino Vidal wrote:

>> FWIW, I find this CVS like behaviour (where options mean different things
>> depending on where you use them), to be highly confusing and undesirable.
>> If one option mean the same everywhere, it means the interface much
>> simpler.
>
> Somewhat yes. But anyway, I'm not using options in different places
> with different meanings ;)

Then, why does it matter where the option is specified ;-)

>> > after processing the options, so that argv[0] becomes the name of the
>> > action, and any remaining entries are its arguments. The same can be
>> > achieved with getopt_long.
>> >
>> > So... is it there any way to do what I want with the actual
>> > implementation? Can't see anything relevant in the docs...
>>
>> Did you try using positional options to parse the 'action' and arguments
>> to it?
>
> I tried, but I couldn't decipher the documentation. IMVHO, it lacks
> some info about what "positional options" are, their purpose, and how
> they are intended to be used.

You mean that

   http://www.meta-comm.com/engineering/resources/cs-win32_metacomm/doc/html/program_options/overview.html#id587197

is not sufficiently detailed? I'll try to improve that section, then.

- Volodya


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