/*
 * @(#)Argument.java
 *
 * Copyright (c) 2002-2003 JSCAPE
 * 1147 S. 53rd Pl., Mesa, Arizona, 85206, U.S.A.
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of
 * JSCAPE. ("Confidential Information").  You shall not disclose such
 * Confidential Information and shall use it only in accordance with
 * the terms of the license agreement you entered into with JSCAPE.
 */

package com.jscape.util.cli;

import com.jscape.util.Parameters;

/**
 * Message line argument.
 *
 * @author Alex
 */
public class Argument {

    public final String value;
    public boolean parsed;

    /**
     * Creates a new parameter instance.
     *
     * @param value parameter value
     */
    public Argument(String value) {
        Parameters.assertNotNull(value);
        this.value = value;

        this.parsed = false;
    }

    @Override
    public String toString() {
        return "Argument {"
                + "value='" + this.value + '\''
                + ", parsed=" + this.parsed
                + '}';
    }
}
