diff options
Diffstat (limited to 'Source')
-rw-r--r-- | Source/kwsys/CommandLineArguments.cxx | 6 | ||||
-rw-r--r-- | Source/kwsys/CommandLineArguments.hxx.in | 5 |
2 files changed, 11 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; diff --git a/Source/kwsys/CommandLineArguments.hxx.in b/Source/kwsys/CommandLineArguments.hxx.in index c07dff9..630de59 100644 --- a/Source/kwsys/CommandLineArguments.hxx.in +++ b/Source/kwsys/CommandLineArguments.hxx.in @@ -137,6 +137,11 @@ public: void SetLineLength(unsigned int); unsigned int GetLineLength(); + /** + * Get the executable name (argv0) + */ + const char* GetArgv0(); + protected: void GenerateHelp(); |