title: Groovy method with optional parameters
body: <p>I would like to write a wrapper method for a webservice, the service accepts 2 mandatory and 3 optional parameters. </p>
  
  <p>To have a shorter example, I would like to get the following code working </p>
  
  <pre><code>def myMethod(pParm1='1', pParm2='2') {
      println "${pParm1}${pParm2}"
  }
  
  myMethod();
  myMethod('a')
  myMethod(pParm2:'a') // doesn't work as expected
  myMethod('b','c')
  </code></pre>
  
  <p>The output is:</p>
  
  <pre><code>12
  a2
  [pParm2:a]2
  a2
  bc
  </code></pre>
  
  <p>What I would like to achieve is to give one parameter and get <code>1a</code> as the result.
  Is this possible (in the laziest way)?</p>