Opened 12 years ago
Closed 12 years ago
#4159 closed Bugs (fixed)
program_options fails with similar parameter names
Reported by: | anonymous | Owned by: | Vladimir Prus |
---|---|---|---|
Milestone: | Boost 1.43.0 | Component: | program_options |
Version: | Boost 1.42.0 | Severity: | Problem |
Keywords: | Cc: |
Description
Assume we have two parameters specified, namely myparam and myparam-other. If these are specified (with add_params()) in the given order, the parameter --myparam will be mistakenly assigned to myparam-other. If they are specified in reverse order, everything will be fine. I guess this is not the intended behavior.
Note:
See TracTickets
for help on using tickets.
This is fixed in SVN trunk and release branch.