summaryrefslogtreecommitdiffstats
path: root/Source/kwsys/CommandLineArguments.cxx
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2004-09-28 15:34:29 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2004-09-28 15:34:29 (GMT)
commite96b0b44cae27130051e4c3bdebdee5c4c1c3c8c (patch)
tree5e06103dcdcf2de2aff8da0c97ee0aaaf31e541e /Source/kwsys/CommandLineArguments.cxx
parent61d615079760ba50ea194956c1e649c73f89e7ba (diff)
downloadCMake-e96b0b44cae27130051e4c3bdebdee5c4c1c3c8c.zip
CMake-e96b0b44cae27130051e4c3bdebdee5c4c1c3c8c.tar.gz
CMake-e96b0b44cae27130051e4c3bdebdee5c4c1c3c8c.tar.bz2
ENH: Add accessor for Argv0
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 9f73dc1..388feb2 100644
--- a/Source/kwsys/CommandLineArguments.cxx
+++ b/Source/kwsys/CommandLineArguments.cxx
@@ -480,6 +480,12 @@ void CommandLineArguments::SetLineLength(unsigned int ll)
}
//----------------------------------------------------------------------------
+const char* CommandLineArguments::GetArgv0()
+{
+ return this->Internals->Argv0.c_str();
+}
+
+//----------------------------------------------------------------------------
void CommandLineArguments::GenerateHelp()
{
kwsys_ios::ostringstream str;