title: Can you reassign the default <cfargument in a cfc?
body: <p>I'm invoking a cfc, the cfc has a default set of arguments like so:</p>
  
  <pre><code>&lt;cfargument name="EMAIL_TEMPLATE_CODE" type="string" required="yes" hint="EMAIL_TEMPLATE_CODE is required."&gt;
  &lt;cfargument name="EMAIL_TEMPLATE_SUBJECT" default="" type="string" required="no" hint="EMAIL_TEMPLATE_SUBJECT is NOT required."&gt;
  &lt;cfargument name="EMAIL_TEMPLATE_BODY" default="" type="string" required="no" hint="EMAIL_TEMPLATE_BODY is NOT required."&gt;
  </code></pre>
  
  <p>What I'd like to do is make these arguments not requred (as you can see by required="no") but I'd like to reassign the arguments variable if needed.</p>
  
  <p>So something like:</p>
  
  <pre><code>&lt;cfargument name="EMAIL_TEMPLATE_CODE" type="string" required="yes" hint="EMAIL_TEMPLATE_CODE is required."&gt;
  &lt;cfargument name="EMAIL_TEMPLATE_SUBJECT" default="" type="string" required="no" hint="EMAIL_TEMPLATE_SUBJECT is NOT required."&gt;
  &lt;cfargument name="EMAIL_TEMPLATE_BODY" default="" type="string" required="no" hint="EMAIL_TEMPLATE_BODY is NOT required."&gt;
  
  &lt;cfinvoke component="#Request.CFCPath#.email_template" method="getEmailTemplate" returnvariable="getEmailTemplate"&gt;
      &lt;cfinvokeargument name="EMAIL_TEMPLATE_CODE" value="#ARGUMENTS.EMAIL_TEMPLATE_CODE#"&gt;
  &lt;/cfinvoke&gt;
  
  &lt;cfif getEmailTemplate.RecordCount&gt;
      &lt;cfparam name="ARGUMENTS.EMAIL_TEMPLATE_SUBJECT" default="#getEmailTemplate.EMAIL_TEMPLATE_SUBJECT#" type="string"&gt;
      &lt;cfparam name="ARGUMENTS.EMAIL_TEMPLATE_BODY" default="#getEmailTemplate.EMAIL_TEMPLATE_BODY#" type="string"&gt;
  &lt;/cfif&gt;
  </code></pre>
  
  <p>But I'm not able to override the default ARGUMENTS variable. Is there anything you can spot that I'm doing wrong?</p>
  
  <p>EDIT:</p>
  
  <p>I'm doing this because if no argument is passed to the cfc, I want to create one. I guess I should cfset a local variable if the argument doesn't have length?</p>
  
  <pre><code>&lt;cfif Len(ARGUMENTS.EMAIL_TEMPLATE_ADDRESS_FROM)&gt;
      &lt;cfset EMailTemplateAddressFrom = ARGUMENTS.EMAIL_TEMPLATE_ADDRESS_FROM&gt;
  &lt;cfelse&gt;
      &lt;cfset EMailTemplateAddressFrom = getEmailTemplate.EMAIL_TEMPLATE_ADDRESS_FROM&gt;         
  &lt;/cfif&gt; 
  </code></pre>