diff --git a/README.md b/README.md index 9e7cacaa..08c6cda9 100644 --- a/README.md +++ b/README.md @@ -156,6 +156,7 @@ Options: --repl Start REPL --socket-repl Start socket REPL. Specify port (e.g. 1666) or host and port separated by colon (e.g. 127.0.0.1:1666). --time Print execution time before exiting. + -- Stop parsing args and pass everything after -- to *command-line-args* If neither -e, -f, or --socket-repl are specified, then the first argument that is not parsed as a option is treated as a file if it exists, or as an expression otherwise. Everything after that is bound to *command-line-args*. diff --git a/src/babashka/main.clj b/src/babashka/main.clj index dc6751f0..8e5430b0 100644 --- a/src/babashka/main.clj +++ b/src/babashka/main.clj @@ -181,6 +181,7 @@ --repl Start REPL --socket-repl Start socket REPL. Specify port (e.g. 1666) or host and port separated by colon (e.g. 127.0.0.1:1666). --time Print execution time before exiting. + -- Stop parsing args and pass everything after -- to *command-line-args* If neither -e, -f, or --socket-repl are specified, then the first argument that is not parsed as a option is treated as a file if it exists, or as an expression otherwise. Everything after that is bound to *command-line-args*."))