@@ -28,8 +28,8 @@ extension DocumentedFlag {
2828 /// A plugin feature flag to enable building combined documentation for multiple targets.
2929 ///
3030 /// - Note: This flag requires that the `docc` executable supports ``Feature/linkDependencies``.
31- static let enableCombinedDocumentationSupport = Self (
32- names: ParsedPluginArguments . enableCombinedDocumentation ,
31+ static let enableCombinedDocumentation = Self (
32+ names: . init ( preferred : " --enable-experimental-combined-documentation " ) ,
3333 abstract: " Create a combined DocC archive with all generated documentation. " ,
3434 discussion: """
3535 Experimental feature that allows targets to link to pages in their dependencies and that \
@@ -38,8 +38,8 @@ extension DocumentedFlag {
3838 )
3939
4040 /// A plugin feature flag to skip adding the `--emit-lmdb-index` flag, that the plugin adds by default.
41- static let disableIndex = Self (
42- names: ParsedPluginArguments . disableLMDBIndex ,
41+ static let disableLMDBIndex = Self (
42+ names: . init ( preferred : " --disable-indexing " , alternatives : [ " --no-indexing " ] ) ,
4343 abstract: " Disable indexing for the produced DocC archive. " ,
4444 discussion: """
4545 Produces a DocC archive that is best-suited for hosting online but incompatible with Xcode.
@@ -48,7 +48,7 @@ extension DocumentedFlag {
4848
4949 /// A plugin feature flag to enable verbose logging.
5050 static let verbose = Self (
51- names: ParsedPluginArguments . verbose,
51+ names: . init ( preferred : " -- verbose" ) ,
5252 abstract: " Increase verbosity to include informational output. " ,
5353 discussion: nil
5454 )
@@ -66,17 +66,17 @@ extension DocumentedFlag {
6666 /// - Note: This flag is only available starting from Swift 5.8. It should be hidden from the `--help` command for lower toolchain versions.
6767 /// However, we do not hide the flag entirely, because this enables us to give a more precise warning when accidentally used with Swift 5.7 or lower.
6868 static let extendedTypes = Self (
69- names: ParsedSymbolGraphArguments . includeExtendedTypes ,
70- inverseNames: ParsedSymbolGraphArguments . excludeExtendedTypes ,
71- abstract: " Control whether extended types from other modules are shown in the produced DocC archive. (default: \( Self . defaultExtendedTypesValue) ) " ,
69+ names: . init ( preferred : " --include-extended-types " ) ,
70+ inverseNames: . init ( preferred : " --exclude-extended-types " ) ,
71+ abstract: " Control whether extended types from other modules are shown in the produced DocC archive. (default: -- \( Self . defaultExtendedTypesValue ? " include " : " exclude " ) -extended-types )" ,
7272 discussion: " Allows documenting symbols that a target adds to its dependencies. "
7373 )
7474
7575 /// Exclude synthesized symbols from the generated documentation.
7676 ///
7777 /// `--experimental-skip-synthesized-symbols` produces a DocC archive without compiler-synthesized symbols.
7878 static let skipSynthesizedSymbols = Self (
79- names: ParsedSymbolGraphArguments . skipSynthesizedSymbols ,
79+ names: . init ( preferred : " --experimental-skip-synthesized-symbols " ) ,
8080 abstract: " Exclude synthesized symbols from the generated documentation. " ,
8181 discussion: """
8282 Experimental feature that produces a DocC archive without compiler synthesized symbols.
@@ -85,16 +85,16 @@ extension DocumentedFlag {
8585
8686 /// The minimum access level that the symbol graph extractor will emit symbols for
8787 static let minimumAccessLevel = Self (
88- names: ParsedSymbolGraphArguments . minimumAccessLevel ,
88+ names: . init ( preferred : " --symbol-graph-minimum-access-level " ) ,
8989 abstract: " Include symbols with this access level or more. (default: public) " ,
9090 discussion: """
9191 Supported access level values are: `open`, `public`, `internal`, `private`, `fileprivate`
9292 """
9393 )
9494
9595#if swift(>=5.9)
96- private static let defaultExtendedTypesValue = ParsedSymbolGraphArguments . includeExtendedTypes . preferred
96+ private static let defaultExtendedTypesValue = true
9797#else
98- private static let defaultExtendedTypesValue = ParsedSymbolGraphArguments . excludeExtendedTypes . preferred
98+ private static let defaultExtendedTypesValue = false
9999#endif
100100}
0 commit comments