Skip to content

Default Multiple Options Values #77

Description

@Vexo413

FEATURE REQUEST

The README.md says:

Multiple option values: --opt val1 --opt val2 --opt val3

If the type was for example []const []const u8, but if you have none of these (no --opt) then it doesn't use the default value in the value reference, and instead makes it a empty slice, at least that is what I think it happening.

It would be nice if none of them are provided it used the default, or make it a new field in the Option struct, which can determine if no --opt means an empty list or use the default.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions