From f3b4d3f43399f0b1de245b10e91c4e369e34b52f Mon Sep 17 00:00:00 2001 From: Aaron Gershman Date: Mon, 26 Apr 2021 16:48:30 -0500 Subject: [PATCH] usage information should include example key when -Ddetail is passed --- src/main/java/org/openrewrite/maven/RewriteDiscoverMojo.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/org/openrewrite/maven/RewriteDiscoverMojo.java b/src/main/java/org/openrewrite/maven/RewriteDiscoverMojo.java index 3fd91939..daf32d10 100644 --- a/src/main/java/org/openrewrite/maven/RewriteDiscoverMojo.java +++ b/src/main/java/org/openrewrite/maven/RewriteDiscoverMojo.java @@ -97,6 +97,7 @@ private void writeRecipeDescriptor(RecipeDescriptor rd, boolean verbose, int cur getLog().info(indent(indentLevel + 1, od.getName() + ": " + od.getType() + (od.isRequired() ? "!" : ""))); getLog().info(indent(indentLevel + 2, "displayName: " + od.getDisplayName())); getLog().info(indent(indentLevel + 2, "description: " + od.getDescription())); + getLog().info(indent(indentLevel + 2, (od.getExample() == null ? "" : "example: " + od.getExample()))); } }