Run a -main function with optional command-line arguments.
Run a -main function with optional command-line arguments.
(run project & raw-args)
Run the project's -main function.
USAGE: lein run [--] [ARGS...]
Calls the -main function in the namespace specified as :main in project.clj.
You may use -- to escape the first argument in case it begins with -' or
:'.
If your main function is not called "-main", you may use a namespaced symbol
like clojure.main/main.
USAGE: lein run -m NAMESPACE[/MAIN_FUNCTION] [--] [ARGS...]
Calls the main function in the specified namespace. You may have to use -- to
escape the first argument in case it begins with -' or
:'.
The `--quote-args' flag quotes the arguments passed in, instead of converting them to strings. Arguments coming from the command line will always be strings, so this is only useful when invoked from :aliases.
See also "lein help trampoline" for a way to save memory using this task.
Run the project's -main function. USAGE: lein run [--] [ARGS...] Calls the -main function in the namespace specified as :main in project.clj. You may use -- to escape the first argument in case it begins with `-' or `:'. If your main function is not called "-main", you may use a namespaced symbol like clojure.main/main. USAGE: lein run -m NAMESPACE[/MAIN_FUNCTION] [--] [ARGS...] Calls the main function in the specified namespace. You may have to use -- to escape the first argument in case it begins with `-' or `:'. The `--quote-args' flag quotes the arguments passed in, instead of converting them to strings. Arguments coming from the command line will always be strings, so this is only useful when invoked from :aliases. See also "lein help trampoline" for a way to save memory using this task.
(run-form given args)
Construct a form to run the given main defn or class with arguments.
Construct a form to run the given main defn or class with arguments.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close