From b931b98f4c4edd4dbd38f543e8701a5bac0739e0 Mon Sep 17 00:00:00 2001 From: Michiel Borkent Date: Fri, 31 Jan 2020 17:34:39 +0100 Subject: [PATCH] Doc --- README.md | 1 + src/babashka/main.clj | 1 + 2 files changed, 2 insertions(+) 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*."))