logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

clojure - a JVM-based dynamic programming language

Author

clojure  is  a  wrapper  script  around a Java implementation by Rich Hickey <richhickey@gmail.com>.  The
       wrapper script was written by Peter Collingbourne <peter@pcc.me.uk>.

       This manual page was written by Peter Collingbourne <peter@pcc.me.uk>, for the Debian project (but may be
       used by others).

                                                                                                      CLOJURE(1)

Description

       This manual page documents briefly the clojure command.

       clojure is the main entry point for Clojure, a dynamic programming language that targets the Java Virtual
       Machine.   With no options or arguments, it runs an interactive Read-Eval-Print loop (REPL).

Environment

       A listing of recognised environment variables is included below.

       CLASSPATH
              Specifies additional classpath elements.

Name

       clojure - a JVM-based dynamic programming language

Options

       A summary of options is included below.

       -cp,-classpathclasspath
              Specifies  additional  classpath  elements.   Overrides the $CLASSPATH environment variable.  Must
              appear first if given.

       -i,--initpath
              Load a file or resource at initialisation time.  May be specified multiple times.

       -e,--evalstring
              Evaluate expressions in string; print non-nil values.  May be specified multiple times.

       -m,--mainns-name
              Call the -main function from a namespace with args

       -r,--repl
              Run a repl

       path   Run a script from a file or resource

       -      Run a script from standard input

       -h,-?,--help
              Print a help message and exit

Path Arguments

       A Clojure file can be provided as a path argument.  Files  to  be  loaded  from  the  classpath  must  be
       prefixed  with  a  `@'  character, and must be an absolute path to the classpath resource.  Note that the
       path will be treated as absolute within the classpath, whether it is prefixed with a slash or not.

       clojure binds *command-line-args* to a seq containing the (optional) arguments provided  after  the  path
       argument; this provides a way to provide command-line arguments to your scripts.

See Also

clojurec(1).

Synopsis

clojure [-cp/-classpathclasspath][-i/--initpath][-e/--evalexpr]{-h|-r|path|-}[args...]

See Also