Skip to content

Commit 7fc40ab

Browse files
committed
Add support for specifying REPL flags
1 parent f1e969c commit 7fc40ab

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tools/make/lib/repl/Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ NODE_PATH_REPL ?= $(NODE_PATH)
1010
# Define the path of the REPL executable:
1111
REPL ?= $(LOCAL_BIN_DIR)/repl
1212

13+
# Define any command-line options to use when invoking the REPL executable:
14+
REPL_FLAGS ?=
15+
1316
# Define the path of the directory in which to run the REPL:
1417
REPL_DIR ?= $(ROOT_DIR)
1518

@@ -25,6 +28,6 @@ repl: $(NODE_MODULES) $(REPL)
2528
echo "Starting REPL..."; \
2629
NODE_ENV=$(NODE_ENV_REPL) \
2730
NODE_PATH=$(NODE_PATH_REPL) \
28-
$(REPL)
31+
$(REPL) $(REPL_FLAGS)
2932

3033
.PHONY: repl

0 commit comments

Comments
 (0)