You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by mi...@apache.org on 2018/02/20 20:55:07 UTC

[maven-help-plugin] branch master updated: [MPH-124] Show parameter aliases in describe goal

This is an automated email from the ASF dual-hosted git repository.

michaelo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-help-plugin.git


The following commit(s) were added to refs/heads/master by this push:
     new 3bec8a6  [MPH-124] Show parameter aliases in describe goal
3bec8a6 is described below

commit 3bec8a68f3769b5bdaad8448dac62efbbb4fcd36
Author: Ben Tatham <be...@nanometrics.ca>
AuthorDate: Thu Nov 9 11:10:20 2017 -0500

    [MPH-124] Show parameter aliases in describe goal
    
    This closes #134
---
 src/main/java/org/apache/maven/plugins/help/DescribeMojo.java | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/main/java/org/apache/maven/plugins/help/DescribeMojo.java b/src/main/java/org/apache/maven/plugins/help/DescribeMojo.java
index 423de1f..e7e18b6 100644
--- a/src/main/java/org/apache/maven/plugins/help/DescribeMojo.java
+++ b/src/main/java/org/apache/maven/plugins/help/DescribeMojo.java
@@ -682,6 +682,12 @@ public class DescribeMojo
             }
             append( buffer, parameter.getName() + defaultVal, 2 );
 
+            String alias = parameter.getAlias();
+            if ( !StringUtils.isEmpty( alias ) )
+            {
+                append ( buffer, "Alias", alias, 3 );
+            }
+
             if ( parameter.isRequired() )
             {
                 append( buffer, "Required", "true", 3 );

-- 
To stop receiving notification emails like this one, please contact
michaelo@apache.org.