From 7cf644f064868934fe8dcb46ab150f25fab8e8c8 Mon Sep 17 00:00:00 2001 From: Marcin Aman Date: Mon, 1 Mar 2021 13:50:17 +0100 Subject: Add ability to suppress obvious functions like equals, toString... (#1758) * Add ability to suppress obvious functions like equals, toString... * Add ability to suppress obvious functions like equals, toString... --- runners/cli/src/main/kotlin/cli/main.kt | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'runners/cli') diff --git a/runners/cli/src/main/kotlin/cli/main.kt b/runners/cli/src/main/kotlin/cli/main.kt index 1597ed56..b11ed0dc 100644 --- a/runners/cli/src/main/kotlin/cli/main.kt +++ b/runners/cli/src/main/kotlin/cli/main.kt @@ -69,6 +69,13 @@ class GlobalArguments(args: Array) : DokkaConfiguration { description = "Delay substitution of some elements (usefull for incremental builds of multimodule projects)" ).default(DokkaDefaults.delayTemplateSubstitution) + val noSuppressObviousFunctions: Boolean by parser.option( + ArgType.Boolean, + description = "Document generated or obvious functions like default `toString` or `equals`" + ).default(!DokkaDefaults.suppressObviousFunctions) + + override val suppressObviousFunctions: Boolean by lazy{ !noSuppressObviousFunctions } + val globalPackageOptions by parser.option( ArgType.String, description = "List of package source sets in format \"prefix,-deprecated,-privateApi,+warnUndocumented,+suppress;...\" " -- cgit