Many Common Lisp implementations provide a -e / --eval command-line option (in addition to -l / --load) which allows one to evaluate an expression during startup (before entering the REPL). Both -e and -l are usually handled in order, which is very convenient for automation (e.g. when building a library from a set of configurable Makefiles).
CLISP has -i which behaves more or less like --load. There are two problem is with -x:
- first, it quits the program, unless you add -repl at the end of the command-line, so it is semantically different from -e,
- next, a -x expression cannot be evaluated before a -i file.
Consequently, I would like to have a -e / --eval option that would not quit the program, and be evaluated exactly where it is on the command-line, with respect to other -e options, -i options. I haven't given it much thought, but it seems to me that -x options should continue to be executed after everything else, including -e options.