-
-
Notifications
You must be signed in to change notification settings - Fork 63
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
--json
and --json-file
CLI args add to lfc
#1686
Conversation
I am tested it and it works see this pull request |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great! Only nitpicks from my side...
The error gets reported with an unexpected line number (not even in the right file) when a mistake is inserted into the type for the list of time values. I do not want to fix this right now (honestly it is the C++ compiler's fault, I do not even know how we would fix this), so instead I will try to cover it up.
Thanks for the suggestions and fixes @lhstrh and @petervdonovan - do you think the PR is in good shape for merging now? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is ready to merge. My only comments are unimportant.
Co-authored-by: Peter Donovan <[email protected]>
Co-authored-by: Peter Donovan <[email protected]>
--json
and --json-file
CLI args add to lfc
Objective
Allow properties to be passed into
lfc
through a JSON string or file as an alternative to CLI arguments.Reason
To provide a JSON interface between
lingo
andlfc
.Tasks
--json
,--json-files
} mutually exclusive.CliBase.java
) to first check for--json
and--json-file
args, and if either are given, unpack args and recurse into run().jsonStringToArgs
to convert a JSON string to a Lingua Franca args array.--json
and--json-file
.