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

Use special syntax for runtime arguments #139

Open
melsman opened this issue Oct 12, 2023 · 0 comments
Open

Use special syntax for runtime arguments #139

melsman opened this issue Oct 12, 2023 · 0 comments

Comments

@melsman
Copy link
Owner

melsman commented Oct 12, 2023

Currently, executables generated by MLKit takes command-line arguments -h, -help, etc., that control the runtime behaviour of the program. We should use special syntax for these arguments. The proposal here is to follow the technique used by MLton - see http://mlton.org/RunTimeOptions.

Special MLKit runtime options may be given as follows:

./run @MLKit -h -help -- a b c

MLKit will read the options between @MLkit and the first occurrence of --. The following arguments will be available for CommandLine.args(). Which runtime flags are available depends on the runtime system used. When GC is enabled, -disable_gc, -verbose_gc, -report_gc, and -heap_to_live_ratio N are available, for instance.

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

No branches or pull requests

1 participant