Skip to content

Commit ef3539e

Browse files
committed
Use opts under org.babashka.cli ns
1 parent 38f5c16 commit ef3539e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/babashka/cli.cljc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -327,14 +327,14 @@
327327
error-fn*))
328328
[opt shell cmdline] args
329329
_ (case opt
330-
"--babashka.cli/completion-snippet"
330+
"--org.babashka.cli/completion-snippet"
331331
(if-let [command-name (get-in opts [:completion :command])]
332332
(do (print-completion-shell-snippet (keyword shell) command-name)
333333
(System/exit 0))
334334
(binding [*out* *err*]
335-
(println "Need `:completion {:command \"<name>\"}` in opts to support shell completions")
335+
(println "Need `:completion {:command \"<name>\"}` in `opts` to support shell completions")
336336
(System/exit 1)))
337-
"--babashka.cli/complete"
337+
"--org.babashka.cli/complete"
338338
(do (print-opts-completions (keyword shell) opts cmdline)
339339
(System/exit 0))
340340
:noop)
@@ -818,9 +818,9 @@ complete --command %s --no-files --arguments \"(_babashka_cli_dynamic_completion
818818
(let [command-name (get-in opts [:completion :command])
819819
[opt shell cmdline] args]
820820
(case opt
821-
"--babashka.cli/completion-snippet"
821+
"--org.babashka.cli/completion-snippet"
822822
(print-completion-shell-snippet (keyword shell) command-name)
823-
"--babashka.cli/complete"
823+
"--org.babashka.cli/complete"
824824
(print-dispatch-completions (keyword shell) tree cmdline)
825825
(let [{:as res :keys [cmd-info error available-commands]}
826826
(dispatch-tree' tree args opts)

0 commit comments

Comments
 (0)