title: NAnt: How to get target name that was specified on command line
body: <p>From within my NAnt build script, I'm trying to find out the name of that target that was specified on the command line (or the default target if none was specified).</p>
  
  <p>I've been reviewing the documentation at <a href="http://nant.sourceforge.net/release/0.85-rc1/help/functions/index.html#NAnt" rel="nofollow">http://nant.sourceforge.net/release/0.85-rc1/help/functions/index.html#NAnt</a> and can't seem to find anything.  The only slightly related function I can find is <strong>target::get-current-target</strong> which returns the name of the target that I'm currently in, not the target that was specified on the command line.</p>
  
  <p>Anyone know if there's a way to access this information?  I couldn't find anything in NAntContrib either. Seems like it has to be there somewhere.</p>
  
  <p>Thanks.</p>