diff --git a/README.md b/README.md index 9e303de4..d75ffa00 100644 --- a/README.md +++ b/README.md @@ -127,24 +127,28 @@ You may also download a binary from [Github](https://github.com/borkdude/babashk ## Usage ``` shellsession -Usage: bb [ -i | -I ] [ -o | -O ] [--verbose] [ --stream ] ( -e | -f | --repl | --socket-repl [:] ) +Usage: bb [ -i | -I ] [ -o | -O ] [ --stream ] [--verbose] + [ ( --classpath | -cp ) ] [ ( --main | -m ) ] + ( -e | -f | --repl | --socket-repl [:] ) + [ arg* ] Options: - --help, -h or -?: print this help text. - --version: print the current version of babashka. - - -i: bind *in* to a lazy seq of lines from stdin. - -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. + --help, -h or -? Print this help text. + --version Print the current version of babashka. + -i Bind *in* to a lazy seq of lines from stdin. + -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. + -cp, --classpath Classpath to use. + -m, --main Call the -main function from namespace with args. + --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. 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*.