@@ -435,7 +435,8 @@ present"
435
435
(defn- main-opt
436
436
" Call the -main function from a namespace with string arguments from
437
437
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."
439
440
[repl-env [_ ns & args] cfg]
440
441
((::main (repl/repl-options (repl-env )) default-main )
441
442
repl-env (merge cfg {:main ns :args args})))
@@ -453,7 +454,8 @@ present"
453
454
(defn- script-opt
454
455
" If no main option was given (compile, repl, main), handles running in
455
456
'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."
457
459
[repl-env [path & args] cfg]
458
460
((::main (repl/repl-options (repl-env )) default-main )
459
461
repl-env (merge cfg {:script path :args args})))
@@ -545,7 +547,8 @@ present"
545
547
546
548
(defn- compile-opt
547
549
" 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."
549
552
[repl-env [_ ns & args] cfg]
550
553
((::compile (repl/-repl-options (repl-env )) default-compile )
551
554
repl-env (merge cfg {:args args :ns ns })))
@@ -561,7 +564,7 @@ present"
561
564
keys set)))
562
565
563
566
(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."
565
568
[commands phase]
566
569
(get-options commands phase))
567
570
0 commit comments