Support single-line mode for REPL server