Skip to content

Commit

Permalink
* typos & tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
swannodette committed Aug 4, 2024
1 parent 5b291ca commit 9d5fefd
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/main/clojure/cljs/cli.clj
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,8 @@ present"
(defn- main-opt
"Call the -main function from a namespace with string arguments from
the command line. Can be customized with ::cljs.cli/main fn entry in
the map returned by cljs.repl/IReplEnvOptions."
the map returned by cljs.repl/IReplEnvOptions. For default behavior
see default-main."
[repl-env [_ ns & args] cfg]
((::main (repl/repl-options (repl-env)) default-main)
repl-env (merge cfg {:main ns :args args})))
Expand All @@ -453,7 +454,8 @@ present"
(defn- script-opt
"If no main option was given (compile, repl, main), handles running in
'script' mode. Can be customized with ::cljs.cli/main fn entry in
the map returned by cljs.repl/IReplEnvOptions."
the map returned by cljs.repl/IReplEnvOptions. For default behavior see
default-main."
[repl-env [path & args] cfg]
((::main (repl/repl-options (repl-env)) default-main)
repl-env (merge cfg {:script path :args args})))
Expand Down Expand Up @@ -545,7 +547,8 @@ present"

(defn- compile-opt
"Handle the compile flag. Custom compilation is possible by providing
:cljs.cli/compile fn in the map returned by cljs.repl/IReplEnvOptions."
:cljs.cli/compile fn in the map returned by cljs.repl/IReplEnvOptions.
For default behavior see default-compile."
[repl-env [_ ns & args] cfg]
((::compile (repl/-repl-options (repl-env)) default-compile)
repl-env (merge cfg {:args args :ns ns})))
Expand All @@ -561,7 +564,7 @@ present"
keys set)))

(defn get-flags-set
"See a get-options, this just provides a better name."
"See get-options, this just provides a better name."
[commands phase]
(get-options commands phase))

Expand Down

0 comments on commit 9d5fefd

Please sign in to comment.