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 declare an option as stop option.
030 * A stop option is an option that stops argument parsing and exits normal program flow.
031 * Typical stop options are "-V" / "--version" and "-h" / "--help".
032 * @author <a href="mailto:chris@riedquat.de">Christian Hujer</a>
033 * @see Option
034 */
035 @Retention(RUNTIME)
036 @Target(METHOD)
037 public @interface StopOption {
038 } // @interface StopOption