Skip to content

Commit 4b10cd2

Browse files
committed
Add support for specifying REPL command-line options
1 parent 99fb781 commit 4b10cd2

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

bin/repl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ export NODE=node
1111
# Define the path to the stdlib REPL executable:
1212
export STDLIB_REPL=`dirname "$0"`/../lib/node_modules/\@stdlib/repl/bin/cli
1313

14+
# Define any command-line options to use when invoking the REPL executable:
15+
flags="$REPL_FLAGS"
16+
1417

1518
# FUNCTIONS #
1619

@@ -23,7 +26,7 @@ on_error() {
2326

2427
# Starts the REPL.
2528
start() {
26-
$NODE "$STDLIB_REPL"
29+
$NODE "$STDLIB_REPL" "$flags"
2730
}
2831

2932
# Runs clean-up tasks.

0 commit comments

Comments
 (0)