boostorg / boostorg/program_options
Long option name tokens are parsed as previous option value
Open
- Dominant language
- C++
- Stars
- 136
- Forks
- 117
- PR merge metrics
- No merged PRs in 30d
Description
https://github.com/boostorg/program_options/blob/d95d31684832075fda04c9fc916f8ec875552763/src/cmdline.cpp#L477
If long option follows an option with (string) value, it is parsed as value instead of known option. For example in command line "--option_with_value --known_option", option_with_value will have value equal to "--known_option". This issue does not occur if following option is in short format.
As I understand the code, find_nothrow in referenced file is given token with leading dashes instead of option's string_key (or name).
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.