ChezScheme icon indicating copy to clipboard operation
ChezScheme copied to clipboard

Support `--eval` command line argument that evaluates one expression then exit

Open cireu opened this issue 2 months ago • 1 comments

I found it's quite helpful if Chez can provide such command line argument to run some quick command (especially in the packaging Chez related package)

chez-scheme --eval '(begin (compile-libraries ...))'

It may arguably that this can be done via

echo '(begin (compile-libraries ...))' | chez-scheme -q

(or just write your command to temporary file then execute it via chez-scheme --script)

However, support --eval command line argument is still useful for the use case that pipe(creating temporary file) is not reliable/not convenient.

I create this issue to request your comments, I'd like to try implement it and send a PR if there could be positive feedback

cireu avatar Oct 20 '25 16:10 cireu