File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Sources/ArgumentParser/Completions Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -234,12 +234,12 @@ extension CommandInfoV0 {
234
234
// Generate the case pattern-matching statements for option values.
235
235
// If there aren't any, skip the case block altogether.
236
236
let optionHandlers =
237
- arguments . compactMap { arg in
237
+ options . compactMap { arg in
238
238
guard arg. kind != . flag else { return nil }
239
239
let words = arg. completionWords
240
240
guard !words. isEmpty else { return nil }
241
241
return """
242
- \( arg . completionWords . map { " ' \( $0. shellEscapeForSingleQuotedString ( ) ) ' " } . joined ( separator: " | " ) ) )
242
+ \( words . map { " ' \( $0. shellEscapeForSingleQuotedString ( ) ) ' " } . joined ( separator: " | " ) ) )
243
243
\( valueCompletion ( arg) . indentingEachLine ( by: 8 ) ) \
244
244
return
245
245
;;
You can’t perform that action at this time.
0 commit comments