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

ENH: Add a method to remove remaining arguments

parent abe7773e
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
......@@ -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
......
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