incubator-kitty-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pids...@apache.org
Subject svn commit: r1131503 - in /incubator/kitty/sandbox/trunk/groovy1.8/src/main/groovy/org/apache/kitty: Kitty.groovy Main.groovy
Date Sat, 04 Jun 2011 23:29:09 GMT
Author: pidster
Date: Sat Jun  4 23:29:09 2011
New Revision: 1131503

URL: http://svn.apache.org/viewvc?rev=1131503&view=rev
Log:
re specify vararg, make --help a long opt only

Modified:
    incubator/kitty/sandbox/trunk/groovy1.8/src/main/groovy/org/apache/kitty/Kitty.groovy
    incubator/kitty/sandbox/trunk/groovy1.8/src/main/groovy/org/apache/kitty/Main.groovy

Modified: incubator/kitty/sandbox/trunk/groovy1.8/src/main/groovy/org/apache/kitty/Kitty.groovy
URL: http://svn.apache.org/viewvc/incubator/kitty/sandbox/trunk/groovy1.8/src/main/groovy/org/apache/kitty/Kitty.groovy?rev=1131503&r1=1131502&r2=1131503&view=diff
==============================================================================
--- incubator/kitty/sandbox/trunk/groovy1.8/src/main/groovy/org/apache/kitty/Kitty.groovy
(original)
+++ incubator/kitty/sandbox/trunk/groovy1.8/src/main/groovy/org/apache/kitty/Kitty.groovy
Sat Jun  4 23:29:09 2011
@@ -75,7 +75,7 @@ class Kitty {
 		}
 	}
 
-	def runCommand(line) throws KittyException, KittyRuntimeException {
+	def runCommand(String... line) throws KittyException, KittyRuntimeException {
 		
 		try {
 			// strip first and use the rest as args

Modified: incubator/kitty/sandbox/trunk/groovy1.8/src/main/groovy/org/apache/kitty/Main.groovy
URL: http://svn.apache.org/viewvc/incubator/kitty/sandbox/trunk/groovy1.8/src/main/groovy/org/apache/kitty/Main.groovy?rev=1131503&r1=1131502&r2=1131503&view=diff
==============================================================================
--- incubator/kitty/sandbox/trunk/groovy1.8/src/main/groovy/org/apache/kitty/Main.groovy (original)
+++ incubator/kitty/sandbox/trunk/groovy1.8/src/main/groovy/org/apache/kitty/Main.groovy Sat
Jun  4 23:29:09 2011
@@ -13,7 +13,7 @@ class Main {
 		def cli = new CliBuilder(usage: "$usage")
 		cli.i(longOpt: 'console', 'Launch in an interactive prompt (default)')
 		cli.s(longOpt: 'script', 'Launch inline for scripted access')
-		cli.h(longOpt: 'help', 'Show help')
+		cli._(longOpt: 'help', 'Show help')
 
 		def opt = cli.parse(args)
 
@@ -22,9 +22,6 @@ class Main {
 			return
 		}
 		
-		println "cli: $cli"
-		println "opt: $opt"
-		
 		def func = (opt?.s) ? 'runCommand' : 'runConsole'
 		new Kitty()."$func"(opt.arguments())
 	}



Mime
View raw message