Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
K
KWSys
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Rolf Eike Beer
KWSys
Commits
ec1b6292
Commit
ec1b6292
authored
19 years ago
by
Andy Cedilnik
Browse files
Options
Downloads
Patches
Plain Diff
ENH: Add a method to remove remaining arguments
parent
abe7773e
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CommandLineArguments.cxx
+11
-0
11 additions, 0 deletions
CommandLineArguments.cxx
CommandLineArguments.hxx.in
+1
-0
1 addition, 0 deletions
CommandLineArguments.hxx.in
with
12 additions
and
0 deletions
CommandLineArguments.cxx
+
11
−
0
View file @
ec1b6292
...
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
CommandLineArguments.hxx.in
+
1
−
0
View file @
ec1b6292
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment