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.