<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Groovy CliBuilder with multiple arguments</title>
	<atom:link href="http://www.kellyrob99.com/blog/2009/10/04/groovy-clibuilder-with-multiple-arguments/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.kellyrob99.com/blog/2009/10/04/groovy-clibuilder-with-multiple-arguments/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=groovy-clibuilder-with-multiple-arguments</link>
	<description>Tales of development, life and the folly that goes along with both</description>
	<lastBuildDate>Tue, 13 Dec 2011 22:50:41 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
	<item>
		<title>By: Starr</title>
		<link>http://www.kellyrob99.com/blog/2009/10/04/groovy-clibuilder-with-multiple-arguments/comment-page-1/#comment-1082</link>
		<dc:creator>Starr</dc:creator>
		<pubDate>Fri, 25 Nov 2011 04:30:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.kellyrob99.com/blog/?p=797#comment-1082</guid>
		<description>I would really like to thank you such a lot of for your job you have made in writing this blog post. I am hoping the same top work from you later on also.</description>
		<content:encoded><![CDATA[<p>I would really like to thank you such a lot of for your job you have made in writing this blog post. I am hoping the same top work from you later on also.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TheKaptain</title>
		<link>http://www.kellyrob99.com/blog/2009/10/04/groovy-clibuilder-with-multiple-arguments/comment-page-1/#comment-1079</link>
		<dc:creator>TheKaptain</dc:creator>
		<pubDate>Sun, 06 Nov 2011 20:09:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.kellyrob99.com/blog/?p=797#comment-1079</guid>
		<description>There&#039;s actually an example of using the commons-cli directly(without CliBuilder) in the Groovy source code that might help you as well:
https://github.com/groovy/groovy-core/blob/master/src/main/org/codehaus/groovy/tools/GrapeMain.groovy</description>
		<content:encoded><![CDATA[<p>There&#8217;s actually an example of using the commons-cli directly(without CliBuilder) in the Groovy source code that might help you as well:<br />
<a href="https://github.com/groovy/groovy-core/blob/master/src/main/org/codehaus/groovy/tools/GrapeMain.groovy" rel="nofollow">https://github.com/groovy/groovy-core/blob/master/src/main/org/codehaus/groovy/tools/GrapeMain.groovy</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TheKaptain</title>
		<link>http://www.kellyrob99.com/blog/2009/10/04/groovy-clibuilder-with-multiple-arguments/comment-page-1/#comment-1078</link>
		<dc:creator>TheKaptain</dc:creator>
		<pubDate>Sun, 06 Nov 2011 19:54:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.kellyrob99.com/blog/?p=797#comment-1078</guid>
		<description>It should be, although I can&#039;t find a convenient example. Under the hood you&#039;re using the common-cli-1.2 jar, so you should be able to do everything it supports, although the syntax might not work directly on the builder.</description>
		<content:encoded><![CDATA[<p>It should be, although I can&#8217;t find a convenient example. Under the hood you&#8217;re using the common-cli-1.2 jar, so you should be able to do everything it supports, although the syntax might not work directly on the builder.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pavel</title>
		<link>http://www.kellyrob99.com/blog/2009/10/04/groovy-clibuilder-with-multiple-arguments/comment-page-1/#comment-1077</link>
		<dc:creator>Pavel</dc:creator>
		<pubDate>Sun, 06 Nov 2011 16:25:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.kellyrob99.com/blog/?p=797#comment-1077</guid>
		<description>Hi! Is there a way to create mutually exclusive options using CliBuilder (like using OptionGroup in apache cli) ?

Thank you!</description>
		<content:encoded><![CDATA[<p>Hi! Is there a way to create mutually exclusive options using CliBuilder (like using OptionGroup in apache cli) ?</p>
<p>Thank you!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TheKaptain</title>
		<link>http://www.kellyrob99.com/blog/2009/10/04/groovy-clibuilder-with-multiple-arguments/comment-page-1/#comment-960</link>
		<dc:creator>TheKaptain</dc:creator>
		<pubDate>Fri, 04 Feb 2011 03:08:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.kellyrob99.com/blog/?p=797#comment-960</guid>
		<description>Hmmm, not sure what&#039;s happening there. Using Groovy 1.7.6 with exactly this code I get the following(expected) output.

groovy test.groovy -o out -i f1 f2 f3
[f1, f2, f3]</description>
		<content:encoded><![CDATA[<p>Hmmm, not sure what&#8217;s happening there. Using Groovy 1.7.6 with exactly this code I get the following(expected) output.</p>
<p>groovy test.groovy -o out -i f1 f2 f3<br />
[f1, f2, f3]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jianping</title>
		<link>http://www.kellyrob99.com/blog/2009/10/04/groovy-clibuilder-with-multiple-arguments/comment-page-1/#comment-959</link>
		<dc:creator>jianping</dc:creator>
		<pubDate>Thu, 03 Feb 2011 20:44:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.kellyrob99.com/blog/?p=797#comment-959</guid>
		<description>use unlimited option with default valueSeparator space seems to have some problem:  I got extra &#039;--&#039; between the first and second parameters:

-o out -i f1 f2 f3

{code}

		def cli = new CliBuilder(usage: &quot;help&quot;)
		cli.o(argName:&#039;outputFile&#039;, longOpt:&#039;output&#039;, required:true, args:1, &#039;Output File&#039;)
		cli.i(argName:&#039;inputFiles&#039;, longOpt:&#039;inputs&#039;, required:true, args: Option.UNLIMITED_VALUES, &#039;Input Files&#039;)
		
		// process the args from the second element, leaving the name of the command out.
		def options = cli.parse(args)
		
		if (!options)
		{
			return
		}
		
		println (options.is)

{code}</description>
		<content:encoded><![CDATA[<p>use unlimited option with default valueSeparator space seems to have some problem:  I got extra &#8216;&#8211;&#8217; between the first and second parameters:</p>
<p>-o out -i f1 f2 f3</p>
<p>{code}</p>
<p>		def cli = new CliBuilder(usage: &#8220;help&#8221;)<br />
		cli.o(argName:&#8217;outputFile&#8217;, longOpt:&#8217;output&#8217;, required:true, args:1, &#8216;Output File&#8217;)<br />
		cli.i(argName:&#8217;inputFiles&#8217;, longOpt:&#8217;inputs&#8217;, required:true, args: Option.UNLIMITED_VALUES, &#8216;Input Files&#8217;)</p>
<p>		// process the args from the second element, leaving the name of the command out.<br />
		def options = cli.parse(args)</p>
<p>		if (!options)<br />
		{<br />
			return<br />
		}</p>
<p>		println (options.is)</p>
<p>{code}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TheKaptain</title>
		<link>http://www.kellyrob99.com/blog/2009/10/04/groovy-clibuilder-with-multiple-arguments/comment-page-1/#comment-958</link>
		<dc:creator>TheKaptain</dc:creator>
		<pubDate>Thu, 03 Feb 2011 18:41:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.kellyrob99.com/blog/?p=797#comment-958</guid>
		<description>The Apache cli library is actually fairly well documented, including the Options JP, but as I recall I did have to look around the inet awhile to find good examples:
http://commons.apache.org/cli/introduction.html</description>
		<content:encoded><![CDATA[<p>The Apache cli library is actually fairly well documented, including the Options JP, but as I recall I did have to look around the inet awhile to find good examples:<br />
<a href="http://commons.apache.org/cli/introduction.html" rel="nofollow">http://commons.apache.org/cli/introduction.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jianping</title>
		<link>http://www.kellyrob99.com/blog/2009/10/04/groovy-clibuilder-with-multiple-arguments/comment-page-1/#comment-957</link>
		<dc:creator>jianping</dc:creator>
		<pubDate>Thu, 03 Feb 2011 18:35:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.kellyrob99.com/blog/?p=797#comment-957</guid>
		<description>Good post, Kelly.  Why is Option.UNLIMITED_VALUES not documented anywhere?</description>
		<content:encoded><![CDATA[<p>Good post, Kelly.  Why is Option.UNLIMITED_VALUES not documented anywhere?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

