Skip to content

neil dep --help results in an exception #254

@dgr

Description

@dgr

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions