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 {
234234 // Generate the case pattern-matching statements for option values.
235235 // If there aren't any, skip the case block altogether.
236236 let optionHandlers =
237- arguments . compactMap { arg in
237+ options . compactMap { arg in
238238 guard arg. kind != . flag else { return nil }
239239 let words = arg. completionWords
240240 guard !words. isEmpty else { return nil }
241241 return """
242- \( arg . completionWords . map { " ' \( $0. shellEscapeForSingleQuotedString ( ) ) ' " } . joined ( separator: " | " ) ) )
242+ \( words . map { " ' \( $0. shellEscapeForSingleQuotedString ( ) ) ' " } . joined ( separator: " | " ) ) )
243243 \( valueCompletion ( arg) . indentingEachLine ( by: 8 ) ) \
244244 return
245245 ;;
You can’t perform that action at this time.
0 commit comments