<?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 In Practice</title>
	<atom:link href="http://www.reverttoconsole.com/blog/codesnippets/groovy-clibuilder-in-practice/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.reverttoconsole.com/blog/groovy/groovy-clibuilder-in-practice/</link>
	<description>for f in *;do echo &#124; sed &#039;i\rtc&#039; &#62;&#62; $f;done; java programming et al</description>
	<lastBuildDate>Thu, 19 Jan 2012 04:32:32 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
	<item>
		<title>By: Jeff</title>
		<link>http://www.reverttoconsole.com/blog/groovy/groovy-clibuilder-in-practice/comment-page-1/#comment-19384</link>
		<dc:creator>Jeff</dc:creator>
		<pubDate>Thu, 01 Jul 2010 00:31:56 +0000</pubDate>
		<guid isPermaLink="false">http://reverttoconsole.com/archives/130#comment-19384</guid>
		<description>Hey Steve,
I think what you&#039;re looking for is the args property. 
Check out the examples here: http://groovy.codehaus.org/gapi/groovy/util/CliBuilder.html

In particular look at the example provided emulating the ant command line:

 cli.logfile(args:1, argName:&#039;file&#039;, &#039;use given file for log&#039;)
 cli.D(args:2, valueSeparator:&#039;=&#039;, argName:&#039;property=value&#039;,
       &#039;use value for given property&#039;)</description>
		<content:encoded><![CDATA[<p>Hey Steve,<br />
I think what you&#8217;re looking for is the args property.<br />
Check out the examples here: <a href="http://groovy.codehaus.org/gapi/groovy/util/CliBuilder.html" rel="nofollow">http://groovy.codehaus.org/gapi/groovy/util/CliBuilder.html</a></p>
<p>In particular look at the example provided emulating the ant command line:</p>
<p> cli.logfile(args:1, argName:&#8217;file&#8217;, &#8216;use given file for log&#8217;)<br />
 cli.D(args:2, valueSeparator:&#8217;=', argName:&#8217;property=value&#8217;,<br />
       &#8216;use value for given property&#8217;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://www.reverttoconsole.com/blog/groovy/groovy-clibuilder-in-practice/comment-page-1/#comment-19362</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Wed, 30 Jun 2010 22:25:58 +0000</pubDate>
		<guid isPermaLink="false">http://reverttoconsole.com/archives/130#comment-19362</guid>
		<description>I have yet to find a way to handle the -foo=bar option.  Does the CLIBuilder do this?  If it does, where can I find an example of this syntax?  right now I have written it myself using a for loop and making it in the format of -f bar...but I am sure there is a better way to do this.</description>
		<content:encoded><![CDATA[<p>I have yet to find a way to handle the -foo=bar option.  Does the CLIBuilder do this?  If it does, where can I find an example of this syntax?  right now I have written it myself using a for loop and making it in the format of -f bar&#8230;but I am sure there is a better way to do this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: REVERT TO CONSOLE &#8250; The Product of Scorn</title>
		<link>http://www.reverttoconsole.com/blog/groovy/groovy-clibuilder-in-practice/comment-page-1/#comment-8284</link>
		<dc:creator>REVERT TO CONSOLE &#8250; The Product of Scorn</dc:creator>
		<pubDate>Thu, 25 Mar 2010 18:43:51 +0000</pubDate>
		<guid isPermaLink="false">http://reverttoconsole.com/archives/130#comment-8284</guid>
		<description>[...] are three problems, I chose the middle one to start with. I wrote it in groovy and used the very groovy clibuilder M. Laforge recommended in his comment. I mavenized it to make it easier to [...]</description>
		<content:encoded><![CDATA[<p>[...] are three problems, I chose the middle one to start with. I wrote it in groovy and used the very groovy clibuilder M. Laforge recommended in his comment. I mavenized it to make it easier to [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeff</title>
		<link>http://www.reverttoconsole.com/blog/groovy/groovy-clibuilder-in-practice/comment-page-1/#comment-3719</link>
		<dc:creator>Jeff</dc:creator>
		<pubDate>Mon, 31 Aug 2009 18:45:28 +0000</pubDate>
		<guid isPermaLink="false">http://reverttoconsole.com/archives/130#comment-3719</guid>
		<description>Each option is of type org.apache.commons.cli.Option. This class contains an arg property, which allows you to set the maximum number of args a given property can accept. Take a look here:
http://commons.apache.org/cli/api-1.2/org/apache/commons/cli/Option.html</description>
		<content:encoded><![CDATA[<p>Each option is of type org.apache.commons.cli.Option. This class contains an arg property, which allows you to set the maximum number of args a given property can accept. Take a look here:<br />
<a href="http://commons.apache.org/cli/api-1.2/org/apache/commons/cli/Option.html" rel="nofollow">http://commons.apache.org/cli/api-1.2/org/apache/commons/cli/Option.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Karr</title>
		<link>http://www.reverttoconsole.com/blog/groovy/groovy-clibuilder-in-practice/comment-page-1/#comment-3671</link>
		<dc:creator>David Karr</dc:creator>
		<pubDate>Fri, 28 Aug 2009 17:47:05 +0000</pubDate>
		<guid isPermaLink="false">http://reverttoconsole.com/archives/130#comment-3671</guid>
		<description>How do you allow for options that can appear more than once?  This means that you have to be able to iterate through the provided options in some way.

I&#039;d have to say that the CliBuilder doc is less than informative.</description>
		<content:encoded><![CDATA[<p>How do you allow for options that can appear more than once?  This means that you have to be able to iterate through the provided options in some way.</p>
<p>I&#8217;d have to say that the CliBuilder doc is less than informative.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeff</title>
		<link>http://www.reverttoconsole.com/blog/groovy/groovy-clibuilder-in-practice/comment-page-1/#comment-2919</link>
		<dc:creator>Jeff</dc:creator>
		<pubDate>Sun, 26 Jul 2009 14:36:56 +0000</pubDate>
		<guid isPermaLink="false">http://reverttoconsole.com/archives/130#comment-2919</guid>
		<description>Thanks for the pointer Guillaume. By the way I&#039;ve been reading about Gaelyk recently. I think it&#039;s a very timely addition! I&#039;m looking forward to writing about it here in the future.</description>
		<content:encoded><![CDATA[<p>Thanks for the pointer Guillaume. By the way I&#8217;ve been reading about Gaelyk recently. I think it&#8217;s a very timely addition! I&#8217;m looking forward to writing about it here in the future.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Guillaume.laforge@sp</title>
		<link>http://www.reverttoconsole.com/blog/groovy/groovy-clibuilder-in-practice/comment-page-1/#comment-2877</link>
		<dc:creator>Guillaume.laforge@sp</dc:creator>
		<pubDate>Fri, 24 Jul 2009 15:37:47 +0000</pubDate>
		<guid isPermaLink="false">http://reverttoconsole.com/archives/130#comment-2877</guid>
		<description>You may make it a tiny bit groovier with using &quot;with()&quot;:

cli.with {
    h longOpt: &#039;...&#039;, &#039;...&#039;
    u longOpt: &#039;...&#039;, &#039;...&#039;
}</description>
		<content:encoded><![CDATA[<p>You may make it a tiny bit groovier with using &#8220;with()&#8221;:</p>
<p>cli.with {<br />
    h longOpt: &#8216;&#8230;&#8217;, &#8216;&#8230;&#8217;<br />
    u longOpt: &#8216;&#8230;&#8217;, &#8216;&#8230;&#8217;<br />
}</p>
]]></content:encoded>
	</item>
</channel>
</rss>

