Boost logo

Boost Users :

Subject: Re: [Boost-users] [Program Options] terminate parsing after first positional argument
From: driscoll_at_[hidden]
Date: 2012-07-06 05:36:19


Olaf Meeuwissen writes:
> Interspersed options/arguments are unregistered, aren't they?

No, not necessarily. Consider
  foo --help
  foo target_program --help
or (going full inception)
  foo foo --any-flag

which is why

> When the parser sees the first unregistered option it can
> just stop parsing.

isn't a good solution (though much better than the current state): parsing
really needs to stop at the first *positional* argument, not at the first
unrecognized option.

Evan


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