Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: several bug fixes for options_cli #3735

Merged
merged 10 commits into from
Feb 22, 2022

Conversation

jackgerrits
Copy link
Member

  • Don't check __POSITIONAL__ for unregistered
  • Fix false positive for was_supplied
  • Compare values instead of strings for scalar non string types

std::any_of(m_command_line.begin(), m_command_line.end(), [&long_key](const std::string& arg) {
// We need to check that the option starts with --key_name, but we also need to ensure that either the whole
// token matches or we hit an equals sign denoting the end of the option name. If we don't do this --csoaa and
// --csoaa_ldf would incorrectly match.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

was this a bug fixed?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a bug fixed in the new options implementation yep

@jackgerrits jackgerrits merged commit 78e5fb8 into VowpalWabbit:master Feb 22, 2022
@jackgerrits jackgerrits deleted the jagerrit/options_fixes branch February 22, 2022 20:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants