You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by su...@apache.org on 2018/06/01 15:23:45 UTC

groovy git commit: GROOVY-8621 Grape command line tool synopsis improvement(closes #743)

Repository: groovy
Updated Branches:
  refs/heads/master 54d65654b -> abbc233e3


GROOVY-8621 Grape command line tool synopsis improvement(closes #743)


Project: http://git-wip-us.apache.org/repos/asf/groovy/repo
Commit: http://git-wip-us.apache.org/repos/asf/groovy/commit/abbc233e
Tree: http://git-wip-us.apache.org/repos/asf/groovy/tree/abbc233e
Diff: http://git-wip-us.apache.org/repos/asf/groovy/diff/abbc233e

Branch: refs/heads/master
Commit: abbc233e39f9bcf0db532607968b989a2cfa1f18
Parents: 54d6565
Author: Remko Popma <re...@yahoo.com>
Authored: Fri Jun 1 20:59:46 2018 +0900
Committer: sunlan <su...@apache.org>
Committed: Fri Jun 1 23:23:17 2018 +0800

----------------------------------------------------------------------
 .../org/codehaus/groovy/tools/GrapeMain.groovy      | 16 +++++++++++++++-
 1 file changed, 15 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/groovy/blob/abbc233e/src/main/groovy/org/codehaus/groovy/tools/GrapeMain.groovy
----------------------------------------------------------------------
diff --git a/src/main/groovy/org/codehaus/groovy/tools/GrapeMain.groovy b/src/main/groovy/org/codehaus/groovy/tools/GrapeMain.groovy
index b51322d..f6c72c2 100644
--- a/src/main/groovy/org/codehaus/groovy/tools/GrapeMain.groovy
+++ b/src/main/groovy/org/codehaus/groovy/tools/GrapeMain.groovy
@@ -194,7 +194,21 @@ class GrapeMain implements Runnable {
     }
 
     @Command(name = 'resolve', header = 'Enumerates the jars used by a grape',
-            description = 'Prints the file locations of the jars representing the artifcats for the specified module(s) and the respective transitive dependencies.')
+            customSynopsis = "grape resolve [-adhisv] (<groupId> <artifactId> <version>)+",
+            description = [
+                    'Prints the file locations of the jars representing the artifcats for the specified module(s) and the respective transitive dependencies.',
+                    '',
+                    'Parameters:',
+                    '      <group>          Which module group the module comes from. Translates directly',
+                    '                         to a Maven groupId or an Ivy Organization. Any group',
+                    '                         matching /groovy[x][\\..*]^/ is reserved and may have',
+                    '                         special meaning to the groovy endorsed modules.',
+                    '      <module>         The name of the module to load. Translated directly to a',
+                    '                         Maven artifactId or an Ivy artifact.',
+                    '      <version>        The version of the module to use. Either a literal version `1.',
+                    '                         1-RC3` or an Ivy Range `[2.2.1,)` meaning 2.2.1 or any',
+                    '                         greater version).'
+    ])
     private static class Resolve implements Runnable {
 
         @Option(names = ['-a', '--ant'], description = 'Express dependencies in a format applicable for an ant script')