Skip to content

Add a default value for @Option when the type is an Array #107

@fdiaz

Description

@fdiaz

There's currently no way that I've found to have a default option when an @Option is an array

@Option(parsing: .upToNextOption)
var foo: [String]

I'd like to do something like:

@Option(default: ["someValue"], parsing: .upToNextOption)
var foo: [String]

So even if this option is not set, we still get this information.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions