Skip to content

Commit e3d8a3d

Browse files
cg-softChristian Goetze
andauthored
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 <[email protected]>
1 parent 41982a3 commit e3d8a3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/ArgumentParser/Parsable Properties/OptionGroup.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
/// ```swift
1818
/// struct GlobalOptions: ParsableArguments {
1919
/// @Flag(name: .shortAndLong)
20-
/// var verbose: Bool
20+
/// var verbose: Bool = false
2121
///
2222
/// @Argument var values: [Int]
2323
/// }

0 commit comments

Comments
 (0)