ENH: Add accessor for Argv0
This commit is contained in:
parent
61d6150797
commit
e96b0b44ca
@ -479,6 +479,12 @@ void CommandLineArguments::SetLineLength(unsigned int ll)
|
|||||||
this->GenerateHelp();
|
this->GenerateHelp();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//----------------------------------------------------------------------------
|
||||||
|
const char* CommandLineArguments::GetArgv0()
|
||||||
|
{
|
||||||
|
return this->Internals->Argv0.c_str();
|
||||||
|
}
|
||||||
|
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
void CommandLineArguments::GenerateHelp()
|
void CommandLineArguments::GenerateHelp()
|
||||||
{
|
{
|
||||||
|
@ -137,6 +137,11 @@ public:
|
|||||||
void SetLineLength(unsigned int);
|
void SetLineLength(unsigned int);
|
||||||
unsigned int GetLineLength();
|
unsigned int GetLineLength();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the executable name (argv0)
|
||||||
|
*/
|
||||||
|
const char* GetArgv0();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
void GenerateHelp();
|
void GenerateHelp();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user