Skip to content
Snippets Groups Projects
Commit 48d42f1f authored by Andy Cedilnik's avatar Andy Cedilnik
Browse files

ENH: Add access to last argument parsed

parent ee52ea95
No related branches found
No related tags found
No related merge requests found
......@@ -485,6 +485,12 @@ const char* CommandLineArguments::GetArgv0()
return this->Internals->Argv0.c_str();
}
//----------------------------------------------------------------------------
unsigned int CommandLineArguments::GetLastArgument()
{
return this->Internals->LastArgument + 1;
}
//----------------------------------------------------------------------------
void CommandLineArguments::GenerateHelp()
{
......
......@@ -142,6 +142,12 @@ public:
*/
const char* GetArgv0();
/**
* Get index of the last argument parsed. This is the last argument that was
* parsed ok in the original argc/argv list.
*/
unsigned int GetLastArgument();
protected:
void GenerateHelp();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment