mirror of
https://github.com/apple/swift-argument-parser.git
synced 2026-06-06 20:18:23 +00:00
Due to the restructuring in #477, there was ambiguity between the unconstrained `@Option` initializer that uses a transform (but no initial value) and the one that is constrained to the property being optional. This marks the unconstrained version as disfavored, which allows overload resolution to select the optional version when appropriate. Also fixes this for `@Argument` and improves documentation consistency for `@Option`. Fixes #618.
776 B
776 B
ArgumentParser/Option
Topics
Single-Value Options
init(name:parsing:help:completion:)-4yskeinit(name:parsing:help:completion:)-7slrfinit(wrappedValue:name:parsing:help:completion:)-7ilkuinit(name:parsing:help:completion:transform:)-2wf44init(name:parsing:help:completion:transform:)-25g7binit(wrappedValue:name:parsing:help:completion:transform:)-2llveSingleValueParsingStrategy
Array Options
init(name:parsing:help:completion:)-238hginit(name:parsing:help:completion:transform:)-74hnpinit(wrappedValue:name:parsing:help:completion:)-1dtbfinit(wrappedValue:name:parsing:help:completion:transform:)-1kptoArrayParsingStrategy
Infrequently Used APIs
wrappedValue