fix help
This commit is contained in:
parent
c53a0b079b
commit
5c6bbb4b0f
1 changed files with 3 additions and 3 deletions
|
|
@ -152,12 +152,12 @@ Use -- to separate script command line args from bb command line args.
|
|||
(let [k (first command-line-args)
|
||||
k (keyword (subs k 1))
|
||||
task (get-in @bb-edn [:tasks k])
|
||||
{:keys [:args]} (decode-task task)
|
||||
main (first args)
|
||||
{:keys [:task :args]} (decode-task task)
|
||||
help-text (:help (meta task))]
|
||||
(if help-text
|
||||
[(println help-text) 0]
|
||||
(if main
|
||||
(if-let [main (when (= :main task)
|
||||
(first args))]
|
||||
(let [main (if (simple-symbol? main)
|
||||
(symbol (str main) "-main")
|
||||
main)]
|
||||
|
|
|
|||
Loading…
Reference in a new issue