mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

jcambon
12.18.2009 62be845bbaf00d0ff6fa8584695efdfe91e4872e
opendj-sdk/opends/src/server/org/opends/server/tools/dsconfig/DSConfig.java
@@ -544,7 +544,8 @@
   * @throws ArgumentException
   *           If a global argument could not be registered.
   */
  private void initializeGlobalArguments() throws ArgumentException {
  private void initializeGlobalArguments(String[] args)
    throws ArgumentException {
    if (globalArgumentsInitialized == false) {
      verboseArgument = new BooleanArgument("verbose", 'v', "verbose",
          INFO_DESCRIPTION_VERBOSE.get());
@@ -619,6 +620,7 @@
      // Register any global arguments required by the management
      // context factory.
      factory.setRawArguments(args);
      factory.registerGlobalArguments(parser);
      globalArgumentsInitialized = true;
@@ -706,7 +708,7 @@
  private int run(String[] args) {
    // Register global arguments and sub-commands.
    try {
      initializeGlobalArguments();
      initializeGlobalArguments(args);
      initializeSubCommands();
    } catch (ArgumentException e) {
      Message message = ERR_CANNOT_INITIALIZE_ARGS.get(e.getMessage());