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).
I've been reviewing the documentation at http://nant.sourceforge.net/release/0.85-rc1/help/functions/index.html#NAnt and can't seem to find anything. The only slightly related function I can find is target::get-current-target which returns the name of the target that I'm currently in, not the target that was specified on the command line.
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.
Thanks.