summaryrefslogtreecommitdiffstats
path: root/Source/kwsys/CommandLineArguments.cxx
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2004-09-29 11:56:25 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2004-09-29 11:56:25 (GMT)
commit7488e43d6951402246d83f47bbe1ebce9f05e71e (patch)
tree844c446d12c795de48045900217d75d0e9bf5ef2 /Source/kwsys/CommandLineArguments.cxx
parenta58b87378db8023245b8117f37972270e785cf6e (diff)
downloadCMake-7488e43d6951402246d83f47bbe1ebce9f05e71e.zip
CMake-7488e43d6951402246d83f47bbe1ebce9f05e71e.tar.gz
CMake-7488e43d6951402246d83f47bbe1ebce9f05e71e.tar.bz2
ENH: Add access to last argument parsed
Diffstat (limited to 'Source/kwsys/CommandLineArguments.cxx')
-rw-r--r--Source/kwsys/CommandLineArguments.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/kwsys/CommandLineArguments.cxx b/Source/kwsys/CommandLineArguments.cxx
index 388feb2..a217791 100644
--- a/Source/kwsys/CommandLineArguments.cxx
+++ b/Source/kwsys/CommandLineArguments.cxx
@@ -486,6 +486,12 @@ const char* CommandLineArguments::GetArgv0()
}
//----------------------------------------------------------------------------
+unsigned int CommandLineArguments::GetLastArgument()
+{
+ return this->Internals->LastArgument + 1;
+}
+
+//----------------------------------------------------------------------------
void CommandLineArguments::GenerateHelp()
{
kwsys_ios::ostringstream str;