From da8714805e352c41a232b0bb64d80a047ec0cfc3 Mon Sep 17 00:00:00 2001 From: Michiel Borkent Date: Mon, 13 Apr 2020 21:16:13 +0200 Subject: [PATCH] doc --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index a54ff273..182a06ae 100644 --- a/README.md +++ b/README.md @@ -508,6 +508,9 @@ $ bb "(my-gist-script/-main)" Hello from gist script! ``` +When invoking `bb` with a main function the expression `(System/getProperty +"babashka.main")` will return the name of the main function. + Also see the [babashka.classpath](https://github.com/borkdude/babashka/#babashkaclasspath) namespace which allows dynamically adding to the classpath.