ENH: Add accessor for Argv0

This commit is contained in:
Andy Cedilnik 2004-09-28 11:34:29 -04:00
parent 61d6150797
commit e96b0b44ca
2 changed files with 11 additions and 0 deletions

View File

@ -479,6 +479,12 @@ void CommandLineArguments::SetLineLength(unsigned int ll)
this->GenerateHelp();
}
//----------------------------------------------------------------------------
const char* CommandLineArguments::GetArgv0()
{
return this->Internals->Argv0.c_str();
}
//----------------------------------------------------------------------------
void CommandLineArguments::GenerateHelp()
{

View File

@ -137,6 +137,11 @@ public:
void SetLineLength(unsigned int);
unsigned int GetLineLength();
/**
* Get the executable name (argv0)
*/
const char* GetArgv0();
protected:
void GenerateHelp();