Add command-line argument support via racket #261
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Prototype command-line support for setting options. There are two flags supported at the moment: -o and -O (lower and uppercase).
The lowercase -o will set an initial option value, but will be OVERRIDDEN by file-level option statements. E.g., this at the command line (note the need to escape the backquote):
racket ring_of_lights.frg -o run_sterling \'off -o verbose 1
In contrast, the uppercase -O will set the initial option value and disallow it changing. E.g.,
racket ring_of_lights.frg -o run_sterling \'off -O verbose 1
will give verbose 1 output.
The
run-tests.sh
script has been modified to give-O run_sterling \'off
, which means that it can now be used vs. theexamples
folder for additional testing, as therun
commands in those example models will not open browser tabs.