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

Pass options via a json file instead of command line arguments #167

Closed

Conversation

ZeyadTarekk
Copy link
Contributor

Fixes #164

  • First, the shim parses the arguments and creates a JSON file having those arguments
  • Then the shim passes the JSON file path to the cpp
  • The CPP code parses that JSON file and uses the arguments

Copy link
Contributor

@arthaud arthaud left a comment

Choose a reason for hiding this comment

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

Nice, this is a good start.

Now we need to make it robust and follow our coding standard. See my comments.

Also: in shim.py, _get_command_options is now unused, can we remove it?

shim/shim.py Outdated Show resolved Hide resolved
shim/shim.py Outdated Show resolved Hide resolved
shim/shim.py Outdated Show resolved Hide resolved
shim/shim.py Outdated Show resolved Hide resolved
shim/shim.py Outdated Show resolved Hide resolved
source/Main.cpp Outdated Show resolved Hide resolved
source/Main.cpp Outdated Show resolved Hide resolved
shim/shim.py Outdated Show resolved Hide resolved
shim/shim.py Outdated Show resolved Hide resolved
shim/shim.py Outdated Show resolved Hide resolved
shim/shim.py Show resolved Hide resolved
shim/shim.py Outdated Show resolved Hide resolved
@ZeyadTarekk ZeyadTarekk requested a review from arthaud July 23, 2024 00:17
source/Main.cpp Show resolved Hide resolved
source/MarianaTrench.cpp Outdated Show resolved Hide resolved
source/Options.cpp Outdated Show resolved Hide resolved
@ZeyadTarekk ZeyadTarekk requested a review from arthaud July 23, 2024 17:32
source/Options.cpp Outdated Show resolved Hide resolved
source/Options.cpp Outdated Show resolved Hide resolved
source/Options.cpp Outdated Show resolved Hide resolved
source/Options.cpp Outdated Show resolved Hide resolved
@ZeyadTarekk ZeyadTarekk requested a review from arthaud July 23, 2024 21:25
source/Options.cpp Outdated Show resolved Hide resolved
@ZeyadTarekk ZeyadTarekk requested a review from anwesht July 23, 2024 23:19
Copy link
Contributor

@arthaud arthaud left a comment

Choose a reason for hiding this comment

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

Nice, that looks very good!
Just a last change and we will be merging this.
Thanks for all your work.

source/Options.cpp Outdated Show resolved Hide resolved
source/Options.cpp Outdated Show resolved Hide resolved
source/Options.cpp Outdated Show resolved Hide resolved
@ZeyadTarekk ZeyadTarekk requested a review from arthaud July 24, 2024 12:04
@facebook-github-bot
Copy link
Contributor

@arthaud has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Contributor

@arthaud merged this pull request in 0ff695a.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[MLH] Pass options via a json file instead of command line arguments
4 participants