-
-
Notifications
You must be signed in to change notification settings - Fork 644
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Various changes needed to support access to the Rust parser from Python code. These include: 1. Modeling option source "rank", using the same enum values as the Python model. 2. Making the OptionsParser concurrency-friendly (making it Send + Sync, and using Arc instead of Rc). 3. Plumbing passthrough args in. 4. Having get_list()'s `default` be Vec instead of array. 5. Ensuring that `--string-list-option=` is interpreted as adding an empty string to the list, rather than setting it to an empty list, and ensuring that for other list types, `--foo=` is an error. This is how the Python options parser treats these cases, so we must comply with that. The actual Python bindings will be provided in a future PR.
- Loading branch information
Showing
5 changed files
with
115 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters