Skip to content
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

Unknown option: :babashka.cli/opts-by-cmds when using dispatch with :restrict true #98

Closed
ferdinand-beyer opened this issue May 8, 2024 · 3 comments

Comments

@ferdinand-beyer
Copy link

Reproducing example for babashka/cli v0.8.59:

(cli/dispatch [{:cmds ["foo"]
                :fn identity
                :spec {:x {:coerce :boolean}}}]
              ["foo"]
              {:restrict true})
; => ExceptionInfo: Unknown option: :babashka.cli/opts-by-cmds

It seems like the special key :babashka.cli/opts-by-cmds is added to the config, and :restrict true then complains that this is not defined.

@borkdude
Copy link
Contributor

borkdude commented May 8, 2024

Hmm, this is indeed a silly bug, thanks for posting.

@borkdude
Copy link
Contributor

borkdude commented May 8, 2024

@ferdinand-beyer Do you need a new release or can you test/use as a git dep for now?

@ferdinand-beyer
Copy link
Author

@ferdinand-beyer Do you need a new release or can you test/use as a git dep for now?

I have a workaround for this and can wait for a release whenever it makes sense!

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

2 participants