From 9cb4e3fe831a47eb6b3ce6893566baedba67619a Mon Sep 17 00:00:00 2001 From: Remko Popma Date: Fri, 1 Jun 2018 20:59:46 +0900 Subject: [PATCH] GROOVY-8621 Grape command line tool synopsis improvement --- .../org/codehaus/groovy/tools/GrapeMain.groovy | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/src/main/groovy/org/codehaus/groovy/tools/GrapeMain.groovy b/src/main/groovy/org/codehaus/groovy/tools/GrapeMain.groovy index b51322dfd4a..f6c72c2dc97 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] ( )+", + description = [ + 'Prints the file locations of the jars representing the artifcats for the specified module(s) and the respective transitive dependencies.', + '', + 'Parameters:', + ' 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.', + ' The name of the module to load. Translated directly to a', + ' Maven artifactId or an Ivy artifact.', + ' 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')