Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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

@ferdinand-beyer

Description

@ferdinand-beyer

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.

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