Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
Webtools Releng
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Eclipse Projects
webtools
Releng
Webtools Releng
Commits
6f0ca1e9
Commit
6f0ca1e9
authored
19 years ago
by
jeffliu
Browse files
Options
Downloads
Patches
Plain Diff
[124920] Create a tool that generates a report of adopters' usage of WTP code
parent
5a86f48e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
archive/releng.builder/tools/apitools/org.eclipse.wtp.releng.tools.component.core/src/org/eclipse/wtp/releng/tools/component/util/CommandOptionParser.java
+15
-0
15 additions, 0 deletions
.../wtp/releng/tools/component/util/CommandOptionParser.java
with
15 additions
and
0 deletions
archive/releng.builder/tools/apitools/org.eclipse.wtp.releng.tools.component.core/src/org/eclipse/wtp/releng/tools/component/util/CommandOptionParser.java
+
15
−
0
View file @
6f0ca1e9
...
...
@@ -11,6 +11,7 @@
package
org.eclipse.wtp.releng.tools.component.util
;
import
java.util.Collection
;
import
java.util.HashMap
;
import
java.util.Map
;
import
java.util.List
;
...
...
@@ -31,6 +32,20 @@ public class CommandOptionParser
return
options
;
}
public
Collection
getOption
(
String
key
)
{
return
(
Collection
)
options
.
get
(
key
);
}
public
String
getOptionAsString
(
String
key
)
{
Collection
c
=
getOption
(
key
);
if
(
c
.
isEmpty
())
return
null
;
else
return
(
String
)
c
.
iterator
().
next
();
}
private
void
parse
(
String
[]
args
)
{
options
=
new
HashMap
();
...
...
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