@@ -126,6 +126,23 @@ extension Option where Value: ExpressibleByArgument {
126
126
)
127
127
}
128
128
129
+ /// Creates a property with a default value provided by standard Swift default value syntax.
130
+ @available ( * , deprecated, message: " Swap the order of your 'help' and 'completion' arguments. " )
131
+ public init (
132
+ wrappedValue: Value ,
133
+ name: NameSpecification = . long,
134
+ parsing parsingStrategy: SingleValueParsingStrategy = . next,
135
+ completion: CompletionKind ? ,
136
+ help: ArgumentHelp ?
137
+ ) {
138
+ self . init (
139
+ name: name,
140
+ initial: wrappedValue,
141
+ parsingStrategy: parsingStrategy,
142
+ help: help,
143
+ completion: completion)
144
+ }
145
+
129
146
/// Creates a property with a default value provided by standard Swift default value syntax.
130
147
///
131
148
/// This method is called to initialize an `Option` with a default value such as:
@@ -138,12 +155,13 @@ extension Option where Value: ExpressibleByArgument {
138
155
/// - name: A specification for what names are allowed for this flag.
139
156
/// - parsingStrategy: The behavior to use when looking for this option's value.
140
157
/// - help: Information about how to use this option.
158
+ /// - completion: Kind of completion provided to the user for this option.
141
159
public init (
142
160
wrappedValue: Value ,
143
161
name: NameSpecification = . long,
144
162
parsing parsingStrategy: SingleValueParsingStrategy = . next,
145
- completion : CompletionKind ? = nil ,
146
- help : ArgumentHelp ? = nil
163
+ help : ArgumentHelp ? = nil ,
164
+ completion : CompletionKind ? = nil
147
165
) {
148
166
self . init (
149
167
name: name,
0 commit comments