From: Peter Bernard West Date: Sat, 6 Mar 2004 06:16:56 +0000 (+0000) Subject: Used OptionBuilder for all args X-Git-Tag: Alt-Design_pre_awt_renderer_import~15 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=6ffdb261a9ead99bb110cf205a7d1a85442aa5f2;p=xmlgraphics-fop.git Used OptionBuilder for all args git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/FOP_0-20-0_Alt-Design@197420 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/java/org/apache/fop/apps/FOPOptions.java b/src/java/org/apache/fop/apps/FOPOptions.java index d867a3679..17ca4641c 100644 --- a/src/java/org/apache/fop/apps/FOPOptions.java +++ b/src/java/org/apache/fop/apps/FOPOptions.java @@ -519,8 +519,12 @@ public class FOPOptions { // Add verbosity to options options.addOptionGroup(verbosity); // Add the dump-config option directly - options.addOption(new Option( - "x", "dump-config", NO_ARG, "Dump configuration settings")); + options.addOption( + OptionBuilder + .withArgName("dump config") + .withLongOpt("dump-config") + .withDescription("Dump configuration settings") + .create("x")); // Add the config-file option directly options.addOption( OptionBuilder