diff --git a/README.md b/README.md index 49274ec5..ea8289aa 100644 --- a/README.md +++ b/README.md @@ -125,7 +125,7 @@ You may also download a binary from [Github](https://github.com/borkdude/babashk ## Usage ``` shellsession -Usage: bb [ -i | -I ] [ -o | -O ] [ --stream ] ( -e | -f | --socket-repl [:] ) +Usage: bb [ -i | -I ] [ -o | -O ] [--verbose] [ --stream ] ( -e | -f | --repl | --socket-repl [:] ) Options: @@ -136,9 +136,11 @@ Options: -I: bind *in* to a lazy seq of EDN values from stdin. -o: write lines to stdout. -O: write EDN values to stdout. + --verbose: print entire stacktrace in case of exception. --stream: stream over lines or EDN values from stdin. Combined with -i or -I *in* becomes a single value per iteration. -e, --eval : evaluate an expression -f, --file : evaluate a file + --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. diff --git a/src/babashka/main.clj b/src/babashka/main.clj index 23f7d41c..488f983c 100644 --- a/src/babashka/main.clj +++ b/src/babashka/main.clj @@ -110,12 +110,12 @@ (defn print-version [] (println (str "babashka v"(str/trim (slurp (io/resource "BABASHKA_VERSION")))))) -(def usage-string "Usage: bb [ -i | -I ] [ -o | -O ] [--verbose] [ --stream ] ( -e | -f | --socket-repl [:] )") +(def usage-string "Usage: bb [ -i | -I ] [ -o | -O ] [--verbose] [ --stream ] ( -e | -f | --repl | --socket-repl [:] )") (defn print-usage [] (println usage-string)) (defn print-help [] - (println (str "babashka v" (str/trim (slurp (io/resource "BABASHKA_VERSION"))))) + (println (str "Babashka v" (str/trim (slurp (io/resource "BABASHKA_VERSION"))))) ;; (println (str "sci v" (str/trim (slurp (io/resource "SCI_VERSION"))))) (println) (print-usage)