@@ -126,6 +126,23 @@ extension Option where Value: ExpressibleByArgument {
126126 )
127127 }
128128
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+
129146 /// Creates a property with a default value provided by standard Swift default value syntax.
130147 ///
131148 /// This method is called to initialize an `Option` with a default value such as:
@@ -138,12 +155,13 @@ extension Option where Value: ExpressibleByArgument {
138155 /// - name: A specification for what names are allowed for this flag.
139156 /// - parsingStrategy: The behavior to use when looking for this option's value.
140157 /// - help: Information about how to use this option.
158+ /// - completion: Kind of completion provided to the user for this option.
141159 public init (
142160 wrappedValue: Value ,
143161 name: NameSpecification = . long,
144162 parsing parsingStrategy: SingleValueParsingStrategy = . next,
145- completion : CompletionKind ? = nil ,
146- help : ArgumentHelp ? = nil
163+ help : ArgumentHelp ? = nil ,
164+ completion : CompletionKind ? = nil
147165 ) {
148166 self . init (
149167 name: name,
0 commit comments