Skip to content

Commit 226885c

Browse files
author
Robert James Oxspring
committed
File is a text format
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/cli/trunk@130075 13f79535-47bb-0310-9956-ffa450edef68
1 parent 53cec5b commit 226885c

6 files changed

Lines changed: 723 additions & 723 deletions

File tree

xdocs/images/commandlines.svg

Lines changed: 55 additions & 55 deletions
Loading

xdocs/images/diagrams-cli2.js

Lines changed: 128 additions & 128 deletions
Original file line numberDiff line numberDiff line change
@@ -1,128 +1,128 @@
1-
/*
2-
* Copyright 2004 The Apache Software Foundation
3-
*
4-
* Licensed under the Apache License, Version 2.0 (the "License");
5-
* you may not use this file except in compliance with the License.
6-
* You may obtain a copy of the License at
7-
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
9-
*
10-
* Unless required by applicable law or agreed to in writing, software
11-
* distributed under the License is distributed on an "AS IS" BASIS,
12-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
* See the License for the specific language governing permissions and
14-
* limitations under the License.
15-
*/
16-
17-
var Option = new Interface("Option");
18-
Option.addMethod("process(...)");
19-
Option.addMethod("canProcess(...)");
20-
Option.addMethod("getTriggers()");
21-
Option.addMethod("getPrefixes()");
22-
Option.addMethod("validate(...)");
23-
Option.addMethod("helpLines(...)");
24-
Option.addMethod("appendUsage(...)");
25-
Option.addMethod("getPreferredName()");
26-
Option.addMethod("getDescription()");
27-
Option.addMethod("getId()");
28-
Option.addMethod("findOption(...)");
29-
30-
var Group = new Interface("Group");
31-
Group.addMethod("appendUsage(...)");
32-
Group.addNote("-a | -b | -c | -d | -e");
33-
34-
var Parent = new Interface("Parent");
35-
Parent.addMethod("processParent(...)");
36-
Parent.addNote("-f <arg1>");
37-
38-
var Argument = new Interface("Argument");
39-
Argument.addMethod("getInitialSeparator()");
40-
Argument.addMethod("processValues(...)");
41-
Argument.addMethod("validate(...)");
42-
Argument.addNote("<arg1> [<arg2> ...]");
43-
44-
var CommandLine = new Interface("CommandLine");
45-
CommandLine.addMethod("hasOption(...)");
46-
CommandLine.addMethod("getOption(...)");
47-
CommandLine.addMethod("getValue(...)");
48-
CommandLine.addMethod("getValues(...)");
49-
CommandLine.addMethod("getSwitch(...)");
50-
CommandLine.addMethod("getProperty(...)");
51-
CommandLine.addMethod("getProperties()");
52-
CommandLine.addMethod("getOptionCount(...)");
53-
CommandLine.addMethod("getOptions()");
54-
CommandLine.addMethod("getOptionTriggers()");
55-
56-
var WriteableCommandLine = new Interface("WriteableCommandLine");
57-
WriteableCommandLine.addMethod("addOption(...)");
58-
WriteableCommandLine.addMethod("addValue(...)");
59-
WriteableCommandLine.addMethod("addSwitch(...)");
60-
WriteableCommandLine.addMethod("addProperty(...)");
61-
WriteableCommandLine.addMethod("looksLikeOption(...)");
62-
63-
64-
65-
66-
67-
var PropertyOption = new Class("PropertyOption");
68-
PropertyOption.addAttribute("optionString");
69-
PropertyOption.addAttribute("description");
70-
PropertyOption.addAttribute("prefixes");
71-
PropertyOption.addNote("-Dproperty=value");
72-
73-
var DefaultOption = new Class("DefaultOption");
74-
DefaultOption.addAttribute("optionString");
75-
DefaultOption.addAttribute("description");
76-
DefaultOption.addAttribute("prefixes");
77-
DefaultOption.addNote("-f (--file, --filelist)");
78-
79-
var Command = new Class("Command");
80-
Command.addAttribute("preferredName");
81-
Command.addAttribute("aliases");
82-
Command.addAttribute("required");
83-
Command.addAttribute("triggers");
84-
Command.addNote("update (up, upd)");
85-
86-
var Switch = new Class("Switch");
87-
Switch.addAttribute("enabledPrefix");
88-
Switch.addAttribute("disabledPrefix");
89-
Switch.addAttribute("preferredName");
90-
Switch.addAttribute("aliases");
91-
Switch.addAttribute("required");
92-
Switch.addAttribute("triggers");
93-
Switch.addAttribute("prefixes");
94-
Switch.addNote("+d|-d (+display|-display)");
95-
96-
var SourceDestArgument = new Class("SourceDestArgument");
97-
SourceDestArgument.addAttribute("preferredName");
98-
SourceDestArgument.addAttribute("aliases");
99-
SourceDestArgument.addAttribute("required");
100-
SourceDestArgument.addAttribute("triggers");
101-
SourceDestArgument.addNote("<src1> <src2> ... <dst>");
102-
103-
104-
105-
106-
var Parser = new Class("Parser");
107-
Parser.addMethod("parse(...)");
108-
Parser.addMethod("parseAndHelp(...)");
109-
Parser.addMethod("setGroup(...)");
110-
Parser.addMethod("setHelpFormatter(...)");
111-
Parser.addMethod("setHelpOption(...)");
112-
Parser.addMethod("setHelpTrigger(...)");
113-
114-
115-
116-
var DefaultingCommandLine = new Class("DefaultingCommandLine");
117-
DefaultingCommandLine.addMethod("appendCommandLine(...)");
118-
DefaultingCommandLine.addMethod("insertCommandLine(...)");
119-
DefaultingCommandLine.addMethod("commandLines()");
120-
121-
var PropertiesCommandLine = new Class("PropertiesCommandLine");
122-
PropertiesCommandLine.addAttribute("properties");
123-
PropertiesCommandLine.addNote("java.util.Properties");
124-
125-
var PreferencesCommandLine = new Class("PreferencesCommandLine");
126-
PreferencesCommandLine.addAttribute("preferences");
127-
PreferencesCommandLine.addNote("java.util.prefs.Preferences");
128-
1+
/*
2+
* Copyright 2004 The Apache Software Foundation
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
var Option = new Interface("Option");
18+
Option.addMethod("process(...)");
19+
Option.addMethod("canProcess(...)");
20+
Option.addMethod("getTriggers()");
21+
Option.addMethod("getPrefixes()");
22+
Option.addMethod("validate(...)");
23+
Option.addMethod("helpLines(...)");
24+
Option.addMethod("appendUsage(...)");
25+
Option.addMethod("getPreferredName()");
26+
Option.addMethod("getDescription()");
27+
Option.addMethod("getId()");
28+
Option.addMethod("findOption(...)");
29+
30+
var Group = new Interface("Group");
31+
Group.addMethod("appendUsage(...)");
32+
Group.addNote("-a | -b | -c | -d | -e");
33+
34+
var Parent = new Interface("Parent");
35+
Parent.addMethod("processParent(...)");
36+
Parent.addNote("-f <arg1>");
37+
38+
var Argument = new Interface("Argument");
39+
Argument.addMethod("getInitialSeparator()");
40+
Argument.addMethod("processValues(...)");
41+
Argument.addMethod("validate(...)");
42+
Argument.addNote("<arg1> [<arg2> ...]");
43+
44+
var CommandLine = new Interface("CommandLine");
45+
CommandLine.addMethod("hasOption(...)");
46+
CommandLine.addMethod("getOption(...)");
47+
CommandLine.addMethod("getValue(...)");
48+
CommandLine.addMethod("getValues(...)");
49+
CommandLine.addMethod("getSwitch(...)");
50+
CommandLine.addMethod("getProperty(...)");
51+
CommandLine.addMethod("getProperties()");
52+
CommandLine.addMethod("getOptionCount(...)");
53+
CommandLine.addMethod("getOptions()");
54+
CommandLine.addMethod("getOptionTriggers()");
55+
56+
var WriteableCommandLine = new Interface("WriteableCommandLine");
57+
WriteableCommandLine.addMethod("addOption(...)");
58+
WriteableCommandLine.addMethod("addValue(...)");
59+
WriteableCommandLine.addMethod("addSwitch(...)");
60+
WriteableCommandLine.addMethod("addProperty(...)");
61+
WriteableCommandLine.addMethod("looksLikeOption(...)");
62+
63+
64+
65+
66+
67+
var PropertyOption = new Class("PropertyOption");
68+
PropertyOption.addAttribute("optionString");
69+
PropertyOption.addAttribute("description");
70+
PropertyOption.addAttribute("prefixes");
71+
PropertyOption.addNote("-Dproperty=value");
72+
73+
var DefaultOption = new Class("DefaultOption");
74+
DefaultOption.addAttribute("optionString");
75+
DefaultOption.addAttribute("description");
76+
DefaultOption.addAttribute("prefixes");
77+
DefaultOption.addNote("-f (--file, --filelist)");
78+
79+
var Command = new Class("Command");
80+
Command.addAttribute("preferredName");
81+
Command.addAttribute("aliases");
82+
Command.addAttribute("required");
83+
Command.addAttribute("triggers");
84+
Command.addNote("update (up, upd)");
85+
86+
var Switch = new Class("Switch");
87+
Switch.addAttribute("enabledPrefix");
88+
Switch.addAttribute("disabledPrefix");
89+
Switch.addAttribute("preferredName");
90+
Switch.addAttribute("aliases");
91+
Switch.addAttribute("required");
92+
Switch.addAttribute("triggers");
93+
Switch.addAttribute("prefixes");
94+
Switch.addNote("+d|-d (+display|-display)");
95+
96+
var SourceDestArgument = new Class("SourceDestArgument");
97+
SourceDestArgument.addAttribute("preferredName");
98+
SourceDestArgument.addAttribute("aliases");
99+
SourceDestArgument.addAttribute("required");
100+
SourceDestArgument.addAttribute("triggers");
101+
SourceDestArgument.addNote("<src1> <src2> ... <dst>");
102+
103+
104+
105+
106+
var Parser = new Class("Parser");
107+
Parser.addMethod("parse(...)");
108+
Parser.addMethod("parseAndHelp(...)");
109+
Parser.addMethod("setGroup(...)");
110+
Parser.addMethod("setHelpFormatter(...)");
111+
Parser.addMethod("setHelpOption(...)");
112+
Parser.addMethod("setHelpTrigger(...)");
113+
114+
115+
116+
var DefaultingCommandLine = new Class("DefaultingCommandLine");
117+
DefaultingCommandLine.addMethod("appendCommandLine(...)");
118+
DefaultingCommandLine.addMethod("insertCommandLine(...)");
119+
DefaultingCommandLine.addMethod("commandLines()");
120+
121+
var PropertiesCommandLine = new Class("PropertiesCommandLine");
122+
PropertiesCommandLine.addAttribute("properties");
123+
PropertiesCommandLine.addNote("java.util.Properties");
124+
125+
var PreferencesCommandLine = new Class("PreferencesCommandLine");
126+
PreferencesCommandLine.addAttribute("preferences");
127+
PreferencesCommandLine.addNote("java.util.prefs.Preferences");
128+

0 commit comments

Comments
 (0)