title: How to declare and accept parameters in a grails 3.0 create-script
body: <p>Using the create-script Grails creates a Gant script.
  I've seen that through argsMap I have access to the input parameters. e.g.</p>
  
  <pre><code>grails run my-script --parameter1=value1 --parameter2=value2
  </code></pre>
  
  <p>I can access parameters like this:</p>
  
  <pre><code>argsMap.parameter1 == value1
  argsMap.parameter2 == value2
  </code></pre>
  
  <p>How can I make a script that only accepts one domain class as parameter without the need to specify --parameterName. eg</p>
  
  <pre><code>grails my-script foo.MyDomainClass
  </code></pre>