summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorThomas Fitzsimmons <fitzsim@redhat.com>2006-05-09 23:55:59 +0000
committerThomas Fitzsimmons <fitzsim@redhat.com>2006-05-09 23:55:59 +0000
commit74deca670069e687fde34037cd75b71884f6d1fd (patch)
treec7b3d95fadbd24d5cd307728b2931c527d08fdda /tools
parentdb3674d6afb76f414065c59483eaa63ac2c0b4ca (diff)
downloadclasspath-74deca670069e687fde34037cd75b71884f6d1fd.tar.gz
2006-05-09 Thomas Fitzsimmons <fitzsim@redhat.com>
* resource/gnu/classpath/tools/appletviewer/MessagesBundle.properties: Clarify option descriptions. * tools/gnu/classpath/tools/appletviewer/Main.java: Use all uppercase for metasyntactic variables.
Diffstat (limited to 'tools')
-rw-r--r--tools/gnu/classpath/tools/appletviewer/Main.java168
1 files changed, 84 insertions, 84 deletions
diff --git a/tools/gnu/classpath/tools/appletviewer/Main.java b/tools/gnu/classpath/tools/appletviewer/Main.java
index bd0760300..bcdc6741f 100644
--- a/tools/gnu/classpath/tools/appletviewer/Main.java
+++ b/tools/gnu/classpath/tools/appletviewer/Main.java
@@ -125,108 +125,108 @@ class Main
public static void main(String[] args) throws IOException
{
parser = new ClasspathToolParser("appletviewer", true);
- parser.setHeader("usage: appletviewer [OPTION] --code=FILE | URL...");
-
+ parser.setHeader("usage: appletviewer [OPTION] -code CODE | URL...");
+
OptionGroup attributeGroup = new OptionGroup("Applet tag options");
attributeGroup.add(new Option("code", Main.messages.getString
("gcjwebplugin.code_description"),
- "<code attribute>")
- {
- public void parsed(String argument) throws OptionException
- {
- code = argument;
- }
- });
+ "CODE")
+ {
+ public void parsed(String argument) throws OptionException
+ {
+ code = argument;
+ }
+ });
attributeGroup.add(new Option("codebase", Main.messages.getString
- ("gcjwebplugin.codebase_description"),
- "<codebase attribute>")
- {
- public void parsed(String argument) throws OptionException
- {
- codebase = argument;
- }
- });
+ ("gcjwebplugin.codebase_description"),
+ "CODEBASE")
+ {
+ public void parsed(String argument) throws OptionException
+ {
+ codebase = argument;
+ }
+ });
attributeGroup.add(new Option("archive", Main.messages.getString
- ("gcjwebplugin.archive_description"),
- "<archive attribute>")
- {
- public void parsed(String argument) throws OptionException
- {
- archive = argument;
- }
- });
+ ("gcjwebplugin.archive_description"),
+ "ARCHIVE")
+ {
+ public void parsed(String argument) throws OptionException
+ {
+ archive = argument;
+ }
+ });
attributeGroup.add(new Option("width", Main.messages.getString
- ("gcjwebplugin.width_description"),
- "<width attribute>")
- {
- public void parsed(String argument) throws OptionException
- {
- dimensions.width = Integer.parseInt(argument);
- }
- });
+ ("gcjwebplugin.width_description"),
+ "WIDTH")
+ {
+ public void parsed(String argument) throws OptionException
+ {
+ dimensions.width = Integer.parseInt(argument);
+ }
+ });
attributeGroup.add(new Option("height", Main.messages.getString
- ("gcjwebplugin.height_description"),
- "<height attribute>")
- {
- public void parsed(String argument) throws OptionException
- {
- dimensions.height = Integer.parseInt(argument);
- }
- });
+ ("gcjwebplugin.height_description"),
+ "HEIGHT")
+ {
+ public void parsed(String argument) throws OptionException
+ {
+ dimensions.height = Integer.parseInt(argument);
+ }
+ });
attributeGroup.add(new Option("param", Main.messages.getString
- ("gcjwebplugin.param_description"),
- "<name>,<value>")
- {
- public void parsed(String argument) throws OptionException
- {
- parameters.add(argument);
- }
- });
+ ("gcjwebplugin.param_description"),
+ "NAME,VALUE")
+ {
+ public void parsed(String argument) throws OptionException
+ {
+ parameters.add(argument);
+ }
+ });
OptionGroup pluginGroup = new OptionGroup("Plugin option");
pluginGroup.add(new Option("plugin", Main.messages.getString
- ("gcjwebplugin.plugin_description"),
- "<input pipe>,<output pipe>")
- {
- public void parsed(String argument) throws OptionException
- {
- pluginMode = true;
- int comma = argument.indexOf(',');
- pipeInName = argument.substring(0, comma);
- pipeOutName = argument.substring(comma + 1);
- }
- });
+ ("gcjwebplugin.plugin_description"),
+ "INPUT,OUTPUT")
+ {
+ public void parsed(String argument) throws OptionException
+ {
+ pluginMode = true;
+ int comma = argument.indexOf(',');
+ pipeInName = argument.substring(0, comma);
+ pipeOutName = argument.substring(comma + 1);
+ }
+ });
OptionGroup debuggingGroup = new OptionGroup("Debugging option");
- debuggingGroup.add(new Option ("verbose", Main.messages.getString
- ("gcjwebplugin.verbose_description"),
- null)
- {
- public void parsed(String argument) throws OptionException
- {
- verbose = true;
- }
- });
+ debuggingGroup.add(new Option("verbose", Main.messages.getString
+ ("gcjwebplugin.verbose_description"),
+ null)
+ {
+ public void parsed(String argument) throws OptionException
+ {
+ verbose = true;
+ }
+ });
OptionGroup compatibilityGroup = new OptionGroup("Compatibility options");
compatibilityGroup.add(new Option("debug", Main.messages.getString
("gcjwebplugin.debug_description"),
null)
- {
- public void parsed(String argument) throws OptionException
- {
- // Currently ignored.
- }
- });
+ {
+ public void parsed(String argument) throws OptionException
+ {
+ // Currently ignored.
+ }
+ });
compatibilityGroup.add(new Option("encoding", Main.messages.getString
("gcjwebplugin.encoding_description"),
- "<character set>")
- {
- public void parsed(String argument) throws OptionException
- {
- // FIXME: We should probably be using
- // java.nio.charset.CharsetDecoder to handle the encoding. What
- // is the status of Classpath's implementation?
- }
- });
+ "CHARSET")
+ {
+ public void parsed(String argument) throws OptionException
+ {
+ // FIXME: We should probably be using
+ // java.nio.charset.CharsetDecoder to handle the encoding. What
+ // is the status of Classpath's implementation?
+ }
+ });
parser.add(attributeGroup);
parser.add(pluginGroup);
parser.add(debuggingGroup);