From ef3539e9232c8afe88e6b4a5008c1e94c119ede6 Mon Sep 17 00:00:00 2001 From: sohalt Date: Thu, 21 Mar 2024 17:31:16 +0100 Subject: [PATCH] Use opts under `org.babashka.cli` ns --- src/babashka/cli.cljc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/babashka/cli.cljc b/src/babashka/cli.cljc index 0c79498..18cd63f 100644 --- a/src/babashka/cli.cljc +++ b/src/babashka/cli.cljc @@ -327,14 +327,14 @@ error-fn*)) [opt shell cmdline] args _ (case opt - "--babashka.cli/completion-snippet" + "--org.babashka.cli/completion-snippet" (if-let [command-name (get-in opts [:completion :command])] (do (print-completion-shell-snippet (keyword shell) command-name) (System/exit 0)) (binding [*out* *err*] - (println "Need `:completion {:command \"\"}` in opts to support shell completions") + (println "Need `:completion {:command \"\"}` in `opts` to support shell completions") (System/exit 1))) - "--babashka.cli/complete" + "--org.babashka.cli/complete" (do (print-opts-completions (keyword shell) opts cmdline) (System/exit 0)) :noop) @@ -818,9 +818,9 @@ complete --command %s --no-files --arguments \"(_babashka_cli_dynamic_completion (let [command-name (get-in opts [:completion :command]) [opt shell cmdline] args] (case opt - "--babashka.cli/completion-snippet" + "--org.babashka.cli/completion-snippet" (print-completion-shell-snippet (keyword shell) command-name) - "--babashka.cli/complete" + "--org.babashka.cli/complete" (print-dispatch-completions (keyword shell) tree cmdline) (let [{:as res :keys [cmd-info error available-commands]} (dispatch-tree' tree args opts)