001 /*
002 * JAPI - (Yet another (hopefully) useful) Java API
003 *
004 * Copyright (C) 2006 Christian Hujer
005 *
006 * This program is free software; you can redistribute it and/or
007 * modify it under the terms of the GNU General Public License as
008 * published by the Free Software Foundation; either version 2 of the
009 * License, or (at your option) any later version.
010 *
011 * This program is distributed in the hope that it will be useful, but
012 * WITHOUT ANY WARRANTY; without even the implied warranty of
013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
014 * General Public License for more details.
015 *
016 * You should have received a copy of the GNU General Public License
017 * along with this program; if not, write to the Free Software
018 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
019 * 02111-1307, USA.
020 */
021
022 package net.sf.japi.io.args;
023
024 import static java.lang.annotation.ElementType.METHOD;
025 import java.lang.annotation.Retention;
026 import static java.lang.annotation.RetentionPolicy.RUNTIME;
027 import java.lang.annotation.Target;
028
029 /** Annotation to mark a method as command argument method.
030 * @author <a href="mailto:chris@riedquat.de">Christian Hujer</a>
031 */
032 @Retention(RUNTIME)
033 @Target(METHOD)
034 public @interface Option {
035
036 /** The argument names.
037 * Usually this is two Strings, a single letter and a descriptive String.
038 * @note the supplied string values should not contain neither spaces nor non-ascii characters.
039 */
040 String[] value();
041 } // @interface Option