/* This file is part of SableCC ( http://sablecc.org ).
 *
 * See the NOTICE file distributed with this work for copyright information.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.sablecc.sablecc.launcher;

import org.sablecc.sablecc.exception.InternalException;

public class OptionArgument {

    private Option option;

    private String operand;

    public OptionArgument(
            Option option,
            String operand) {

        if (option == null) {
            throw new InternalException("option may not be null");
        }

        this.option = option;
        this.operand = operand;
    }

    public Option getOption() {

        return this.option;
    }

    public String getOperand() {

        return this.operand;
    }
}

@@ -792,425 +792,1102 @@
 n;%0A%0A
-public class OptionArgument %7B%0A%0A    private Option option;%0A%0A    private String operand;%0A%0A    public OptionArgument(%0A            Option option,%0A            String operand) %7B%0A%0A        if (option == null) %7B%0A            throw new InternalException(%22option may not be null%22);%0A        %7D%0A%0A        this.option = option;%0A        this.operand = operand;%0A    %7D%0A%0A    public Option getOption() %7B%0A%0A        return this.option;%0A    %7D%0A
+/**%0A * An option argument is composed of the option and its operand.%0A */%0Apublic class OptionArgument %7B%0A%0A    /** The option for this option argument. */%0A    private Option option;%0A%0A    /** The operand for this option argument. */%0A    private String operand;%0A%0A    /**%0A     * Constructs an option argument with the provided option and operand.%0A     * %0A     * @param option%0A     *            the option.%0A     * @param operand%0A     *            the operand.%0A     * @throws InternalException%0A     *             if the provided option is %3Ccode%3Enull%3C/code%3E.%0A     */%0A    public OptionArgument(%0A            Option option,%0A            String operand) %7B%0A%0A        if (option == null) %7B%0A            throw new InternalException(%22option may not be null%22);%0A        %7D%0A%0A        this.option = option;%0A        this.operand = operand;%0A    %7D%0A%0A    /**%0A     * Returns the option of this option argument.%0A     * %0A     * @return the option.%0A     */%0A    public Option getOption() %7B%0A%0A        return this.option;%0A    %7D%0A%0A    /**%0A     * Returns the operand of this option argument.%0A     * %0A     * @return the argument.%0A     */
 %0A   

Add javadoc comments. See ticket:58.