Skip to content

support function calls inside external in bpaf_derive #270

Description

@pacak

Currently external supports explicit or implicit path to a function, support function call directly as well?

with function no_bool to generate --foo and --no-foo this would allow to write something like this

#[derive(Debug, Clone, Bpaf)]
struct Options {
    #[bpaf(external(no_bool("banana", "no banana")), help("Should banana be enabled?")]
    banana: bool
}

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions