Pass CommandLine Arguments to buildScript
<p>I have a below task </p>

<pre><code>task showLog1 &lt;&lt;{
def grgit = org.ajoberstar.grgit.Grgit.open(dir: '')
def log = grgit.log {
    range '$tag1','$tag2'
}
}
</code></pre>

<p>Now I was using my tag names after the range but I want to pass this through Command Line. I have gone through few links like <a href="http://mrhaki.blogspot.in/2010/10/gradle-goodness-pass-command-line.html" rel="nofollow">http://mrhaki.blogspot.in/2010/10/gradle-goodness-pass-command-line.html</a> and I am passing from cli  using -p like below:</p>

<pre><code>gradlew showLog1 -ptag1=tag_one -ptag2=tag_two
</code></pre>

<p>But this doesn't give me the log. Anything that I am missing </p>