Skip to content

Commit

Permalink
Add indentation to command help summary
Browse files Browse the repository at this point in the history
  • Loading branch information
julienvincent committed Sep 26, 2024
1 parent d057e5b commit 7648988
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/kmono-cli/src/k16/kmono/cli/parser.clj
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,22 @@

(println "Usage:")
(let [path (conj summary-path command)]
(println (str (str/join " " path) " [opts] <args>")))
(println (str " " (str/join " " path) " [opts] <args>")))

(when version
(println)
(println "Version:")
(println version))
(println (str " " version)))

(when (seq commands)
(println)
(println "Commands:")
(println
(cli/format-table
{:rows (mapv (fn [{:keys [command desc]}]
[command desc])
commands)
:indent 0})))
:indent 2})))

(when (seq options)
(println "\nOptions")
Expand Down

0 comments on commit 7648988

Please sign in to comment.