Skip to content

Commit

Permalink
Add missing @Flag initializer in example (apple#657)
Browse files Browse the repository at this point in the history
The documentation as presented doesn't compile. An initializer is
required for a boolean flag.

rdar://132579907

Co-authored-by: Christian Goetze <[email protected]>
  • Loading branch information
cg-soft and Christian Goetze authored Jul 29, 2024
1 parent 41982a3 commit e3d8a3d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
/// ```swift
/// struct GlobalOptions: ParsableArguments {
/// @Flag(name: .shortAndLong)
/// var verbose: Bool
/// var verbose: Bool = false
///
/// @Argument var values: [Int]
/// }
Expand Down

0 comments on commit e3d8a3d

Please sign in to comment.