ENH: Add a method to remove remaining arguments

This commit is contained in:
Andy Cedilnik 2005-12-10 12:10:09 -05:00
parent 5999a81bcd
commit 5e56c7c201
2 changed files with 12 additions and 0 deletions

View File

@ -358,6 +358,17 @@ void CommandLineArguments::GetRemainingArguments(int* argc, char*** argv)
*argv = args;
}
//----------------------------------------------------------------------------
void CommandLineArguments::DeleteRemainingArguments(int argc, char*** argv)
{
int cc;
for ( cc = 0; cc < argc; ++ cc )
{
delete [] *argv[cc];
}
delete [] *argv;
}
//----------------------------------------------------------------------------
void CommandLineArguments::AddCallback(const char* argument, ArgumentTypeEnum type,
CallbackType callback, void* call_data, const char* help)

View File

@ -170,6 +170,7 @@ public:
* delete[] on it.
*/
void GetRemainingArguments(int* argc, char*** argv);
void DeleteRemainingArguments(int argc, char*** argv);
/**
* Return string containing help. If the argument is specified, only return