Skip to content

neil dep --help results in an exception #254

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
dgr opened this issue Mar 28, 2025 · 0 comments
Open

neil dep --help results in an exception #254

dgr opened this issue Mar 28, 2025 · 0 comments

Comments

@dgr
Copy link

dgr commented Mar 28, 2025

babashka version

v1.12.197

neil version

0.3.68

platform

MacOS

problem

Executing neil dep --help results in the following error:

> neil dep --help
----- Error --------------------------------------------------------------------
Type:     clojure.lang.ExceptionInfo
Data:     {:type :org.babashka/cli, :cause :input-exhausted, :all-commands ("versions" "add" "search" "upgrade" "update"), :opts {:deps-file "deps.edn", :help true}, :dispatch ["dep"]}
Location: /opt/homebrew/bin/neil:1759:3

----- Context ------------------------------------------------------------------
1755: (defn neil-test [{:keys [opts]}]
1756:   (neil-test/neil-test opts))
1757: 
1758: (defn -main [& _args]
1759:   (cli/dispatch
        ^--- 
1760:    [{:cmds ["add" "dep"] :fn dep-add :args->opts [:lib]}
1761:     {:cmds ["add" "test"] :fn add-cognitect-test-runner}
1762:     {:cmds ["add" "build"] :fn add-build}
1763:     {:cmds ["add" "kaocha"] :fn add-kaocha}
1764:     {:cmds ["add" "nrepl"] :fn add-nrepl}

----- Stack trace --------------------------------------------------------------
babashka.cli/dispatch-tree/fn--26128 - <built-in>
babashka.cli/dispatch-tree           - <built-in>
babashka.cli/dispatch                - <built-in>
babashka.neil/-main                  - /opt/homebrew/bin/neil:1759:3
babashka.neil/-main                  - /opt/homebrew/bin/neil:1758:1
babashka.neil                        - /opt/homebrew/bin/neil:1821:3
babashka.neil                        - /opt/homebrew/bin/neil:1820:1

repro

This is easily reproduced from the shell by executing neil dep --help.

expected behavior

I'd expect Neil to print help for the dep subcommand.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant