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

Jean-Noel Rouvignac
16.09.2015 be447ec68c7c1395721de71614c97b1c2fc6f48a
opendj-cli/src/main/java/com/forgerock/opendj/cli/SubCommandArgumentParser.java
@@ -64,7 +64,8 @@
    /** The argument that will be used to trigger the display of usage information. */
    private Argument usageArgument;
    /** The arguments that will be used to trigger the display of usage information for groups of sub-commands. */
    private final Map<Argument, Collection<SubCommand>> usageGroupArguments = new HashMap<Argument, Collection<SubCommand>>();
    private final Map<Argument, Collection<SubCommand>> usageGroupArguments =
        new HashMap<Argument, Collection<SubCommand>>();
    /** The set of unnamed trailing arguments that were provided for this parser. */
    private final ArrayList<String> trailingArguments = new ArrayList<String>();
    /** Indicates whether subcommand and long argument names should be treated in a case-sensitive manner. */
@@ -683,7 +684,7 @@
                                printVersion();
                                return;
                            } else {
                                // -V is defined in another subcommand, so we can
                                // -V is defined in another subcommand, so we cannot
                                // accept it as the version information argument
                                throw new ArgumentException(
                                        ERR_SUBCMDPARSER_NO_GLOBAL_ARGUMENT_FOR_SHORT_ID.get(argCharacter));