From e3d8a3dd42079ac0d3429246a59602c6f6bf9a21 Mon Sep 17 00:00:00 2001 From: Christian Goetze Date: Mon, 29 Jul 2024 13:55:30 -0700 Subject: [PATCH] Add missing @Flag initializer in example (#657) The documentation as presented doesn't compile. An initializer is required for a boolean flag. rdar://132579907 Co-authored-by: Christian Goetze --- Sources/ArgumentParser/Parsable Properties/OptionGroup.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/ArgumentParser/Parsable Properties/OptionGroup.swift b/Sources/ArgumentParser/Parsable Properties/OptionGroup.swift index e4759f75..2d28c127 100644 --- a/Sources/ArgumentParser/Parsable Properties/OptionGroup.swift +++ b/Sources/ArgumentParser/Parsable Properties/OptionGroup.swift @@ -17,7 +17,7 @@ /// ```swift /// struct GlobalOptions: ParsableArguments { /// @Flag(name: .shortAndLong) -/// var verbose: Bool +/// var verbose: Bool = false /// /// @Argument var values: [Int] /// }