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

Move string parsing logic from CommandLineParser class to ppx::string_util::ParseOrDefault() #271

Closed
wants to merge 11 commits into from

Conversation

angela28chen
Copy link
Collaborator

(dependent on #265)

Move string parsing logic from CommandLineParser to string_util. I plan to re-use string parsing logic for generic knob input fields in ImGui

Minor changes:

  • Adding ppx::string_util::Split() and changing SplitInTwo() to use it
  • Enabling comma-separated lists for commandline flags

@angela28chen angela28chen force-pushed the refactor-knobs branch 2 times, most recently from 4b2440b to cd2032e Compare August 16, 2023 18:27
android/linux builds

* Make mAllOptions strings and not string_views
* Make the functions that need to search mAllOptions take input
  parameters of const std::string& instead
* JSON file flags are lower priority than flags specified on the command
  line
* Using JSON is_array and is_object functions
* Using round bracket syntax for initalization
* Fix Parse() function
* Better error reporting for parsing the JSON file
* Fixed flag description typo
* Rename pConfigJsonPath to pConfigJsonPaths
* Change commandline parsing to 2 initial passes for better readability
and command line flags to overwrite json files after that.
Changing logic for 2 initial passes
@angela28chen angela28chen marked this pull request as ready for review August 19, 2023 02:34
@angela28chen angela28chen requested a review from apazylbe August 19, 2023 02:34
@angela28chen angela28chen deleted the refactor-knobs branch August 21, 2023 14:54
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.

1 participant