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

jvergara
23.56.2007 fd724f1439c50c1d9dcf076d42c1bff6de2482d3
opends/src/guitools/org/opends/guitools/statuspanel/StatusCliArgumentParser.java
@@ -49,6 +49,11 @@
  private BooleanArgument noPromptArg;
  /**
   * The 'scriptFriendly' argument.
   */
  private BooleanArgument scriptFriendlyArg;
  /**
   * Creates a new instance of this argument parser with no arguments.
   *
   * @param mainClassName
@@ -86,6 +91,12 @@
        ToolConstants.OPTION_LONG_NO_PROMPT,
        INFO_DESCRIPTION_NO_PROMPT.get());
    defaultArgs.add(0, noPromptArg);
    scriptFriendlyArg = new BooleanArgument(
        "script-friendly",
        's',
        "script-friendly",
        INFO_DESCRIPTION_SCRIPT_FRIENDLY.get());
    defaultArgs.add(1, scriptFriendlyArg);
    initializeGlobalArguments(defaultArgs);
  }
@@ -101,6 +112,17 @@
  }
  /**
   * Tells whether the user specified to have a script-friendly output or not.
   * This method must be called after calling parseArguments.
   * @return <CODE>true</CODE> if the user specified to have a script-friendly
   * output and <CODE>false</CODE> otherwise.
   */
  public boolean isScriptFriendly()
  {
    return scriptFriendlyArg.isPresent();
  }
  /**
   * Returns the first server bind dn explicitly provided in the enable
   * replication subcommand.
   * @return the first server bind dn explicitly provided in the enable