GROOVY-8577: GrapeMain to picocli - trivial tweak (closes #704)

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

Branch: refs/heads/GROOVY_2_6_X
Commit: 670e901e033652cd874173cb88f1aa980b546d39
Parents: 5061cb1
Author: Paul King <pa...@asert.com.au>
Authored: Fri May 18 12:19:45 2018 +1000
Committer: Paul King <pa...@asert.com.au>
Committed: Fri May 18 12:24:13 2018 +1000

----------------------------------------------------------------------
 src/main/groovy/org/codehaus/groovy/tools/GrapeMain.groovy | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/groovy/blob/670e901e/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 705cd26..eaa6964 100644
--- a/src/main/groovy/org/codehaus/groovy/tools/GrapeMain.groovy
+++ b/src/main/groovy/org/codehaus/groovy/tools/GrapeMain.groovy
@@ -110,7 +110,7 @@ class GrapeMain implements Runnable {
     // The @Command(mixinStandardHelpOptions = true) attribute cannot be used 
because
     // the unix standard short option for version help is uppercase -V, while 
previous versions
     // of this class use lowercase -v. This custom mixin preserves option 
compatibility.
-    @Command(versionProvider = VersionProvider.class, sortOptions = false,
+    @Command(versionProvider = VersionProvider, sortOptions = false,
             parameterListHeading = "%nParameters:%n",
             optionListHeading = "%nOptions:%n",
             descriptionHeading = "%n")

Reply via email to