/* * CDDL HEADER START * * The contents of this file are subject to the terms of the * Common Development and Distribution License, Version 1.0 only * (the "License"). You may not use this file except in compliance * with the License. * * You can obtain a copy of the license at legal-notices/CDDLv1_0.txt * or http://forgerock.org/license/CDDLv1.0.html. * See the License for the specific language governing permissions * and limitations under the License. * * When distributing Covered Code, include this CDDL HEADER in each * file and include the License file at legal-notices/CDDLv1_0.txt. * If applicable, add the following below this CDDL HEADER, with the * fields enclosed by brackets "[]" replaced with your own identifying * information: * Portions Copyright [yyyy] [name of copyright owner] * * CDDL HEADER END * * * Copyright 2006-2008 Sun Microsystems, Inc. */ /** * Provides an implementation of a utility that can manage the processing of * command-line arguments for an application. This class centralizes a * significant amount of processing so that it does not need to be repeated * in all tools requiring this kind of functionality, as well as helping to * ensure that the interaction with program arguments is in compliance with * Sun's CLIP specification. *

* Features offered by this argument parsing implementation include: *
* *
* A second version of the argument parser is also available which does not * include support for trailing arguments but does include support for * the use of subcommands. In this case, you can define a number of subcommands * each with their own set of arguments. This can be used for cases in which * one umbrella utility has a number of different capabilities (e.g., the "cvs" * command has a number of sub-commands like "checkout" and "commit" and "diff", * each of which has its own set of options). */ @org.opends.server.types.PublicAPI( stability=org.opends.server.types.StabilityLevel.PRIVATE) package org.opends.server.util.args;