Opened 13 years ago
Closed 12 years ago
#3942 closed Bugs (fixed)
Backwards Compatibility break, program_options error with multiple occurrences
Reported by: | Owned by: | Vladimir Prus | |
---|---|---|---|
Milestone: | Boost 1.44.0 | Component: | program_options |
Version: | Boost 1.44.0 | Severity: | Showstopper |
Keywords: | Cc: |
Description
We recently upgraded a project to 1.42 and noticed that command line parsing has regressed since 1.41.
We defined --config and --config-value, with 1.42 we get an error regarding multiple occurrences. In 1.41 this worked without issue.
[macvicar@dev457 /tmp] LD_LIBRARY_PATH=/tmp/b142/lib ./a.out --config foo --config-value bar terminate called after throwing an instance of 'boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::program_options::multiple_occurrences> >' what(): multiple occurrences Aborted [macvicar@dev457 /tmp] LD_LIBRARY_PATH=/tmp/b141/lib ./a.out --config foo --config-value bar config: foo config-value: bar
Attachments (1)
Change History (9)
by , 13 years ago
Attachment: | boost-program-options.cpp added |
---|
comment:1 by , 13 years ago
Summary: | BC break, program_options error with multiple occurrences → Backwards Compatibility break, program_options error with multiple occurrences |
---|
comment:2 by , 13 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:3 by , 12 years ago
Resolution: | fixed |
---|---|
Status: | closed → reopened |
comment:4 by , 12 years ago
the bugfix is not included in Boost 1.44 see author's comment here http://stackoverflow.com/questions/2589668/boostprogram-options-bug-or-feature
comment:5 by , 12 years ago
Milestone: | Boost 1.43.0 → Boost 1.44.0 |
---|---|
Version: | Boost 1.42.0 → Boost 1.44.0 |
comment:6 by , 12 years ago
Scott, I am confused about your changes to the ticket. For starters, 1.44.0 is already released, so setting milestone to 1.44 is surely wrong (and generally, milestones are for library authors to set). But further, my comment on that site refers to 1.43. The change in question is on the release branch, since 2010-05-14. Therefore, I am not sure what you expect me to do?
comment:8 by , 12 years ago
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
Oh, sorry. Then I'll just make it fixed again.
Test demonstrating program_options regression