Skip to content

Commit 9d5fefd

Browse files
committed
* typos & tweaks
1 parent 5b291ca commit 9d5fefd

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/main/clojure/cljs/cli.clj

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,8 @@ present"
435435
(defn- main-opt
436436
"Call the -main function from a namespace with string arguments from
437437
the command line. Can be customized with ::cljs.cli/main fn entry in
438-
the map returned by cljs.repl/IReplEnvOptions."
438+
the map returned by cljs.repl/IReplEnvOptions. For default behavior
439+
see default-main."
439440
[repl-env [_ ns & args] cfg]
440441
((::main (repl/repl-options (repl-env)) default-main)
441442
repl-env (merge cfg {:main ns :args args})))
@@ -453,7 +454,8 @@ present"
453454
(defn- script-opt
454455
"If no main option was given (compile, repl, main), handles running in
455456
'script' mode. Can be customized with ::cljs.cli/main fn entry in
456-
the map returned by cljs.repl/IReplEnvOptions."
457+
the map returned by cljs.repl/IReplEnvOptions. For default behavior see
458+
default-main."
457459
[repl-env [path & args] cfg]
458460
((::main (repl/repl-options (repl-env)) default-main)
459461
repl-env (merge cfg {:script path :args args})))
@@ -545,7 +547,8 @@ present"
545547

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

563566
(defn get-flags-set
564-
"See a get-options, this just provides a better name."
567+
"See get-options, this just provides a better name."
565568
[commands phase]
566569
(get-options commands phase))
567570

0 commit comments

Comments
 (0)