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

Add command-line argument support via racket #261

Merged
merged 4 commits into from
Jun 17, 2024
Merged

Add command-line argument support via racket #261

merged 4 commits into from
Jun 17, 2024

Conversation

tnelson
Copy link
Owner

@tnelson tnelson commented Jun 13, 2024

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

  • will NOT run sterling (because the example doesn't give a value for that option)
  • WILL give verbose 5 output (because the example gives a value of 5 for that option)

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. the examples folder for additional testing, as the run commands in those example models will not open browser tabs.

@tnelson tnelson merged commit a7cdf63 into dev Jun 17, 2024
1 check passed
@tnelson tnelson deleted the feat_cl_args branch June 17, 2024 16:25
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