+++ /dev/null
-/*--------------------------------------------------------------------------\r
- * Copyright 2008 Taro L. Saito\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the "License");\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- * http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an "AS IS" BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- *--------------------------------------------------------------------------*/\r
-//--------------------------------------\r
-// XerialJ\r
-//\r
-// Option.java\r
-// Since: Oct 27, 2008 10:42:21 AM\r
-//\r
-// $URL: http://www.xerial.org/svn/project/XerialJ/trunk/xerial-core/src/main/java/org/xerial/util/opt/Option.java $\r
-// $Author: leo $\r
-//--------------------------------------\r
-package org.xerial.util.opt;\r
-\r
-import java.lang.annotation.ElementType;\r
-import java.lang.annotation.Retention;\r
-import java.lang.annotation.RetentionPolicy;\r
-import java.lang.annotation.Target;\r
-\r
-/**\r
- * Annotation for specifying command-line options.\r
- * \r
- * \r
- * \r
- * @author leo\r
- * \r
- */\r
-@Retention(RetentionPolicy.RUNTIME)\r
-@Target( { ElementType.FIELD, ElementType.METHOD })\r
-public @interface Option {\r
-\r
- /**\r
- * symbol of the option. If the symbol is "h", it handles option "-h"\r
- * \r
- */\r
- String symbol() default "";\r
-\r
- /**\r
- * Longer name of the option. If the long name is "help", it handles option\r
- * "--help"\r
- * \r
- */\r
- String longName() default "";\r
-\r
- /**\r
- * Variable name used to describe option argument (e.g. --file=VALUE). The\r
- * default value is capitalized name().\r
- */\r
- String varName() default "VAR";\r
-\r
- /**\r
- * Description of the option, used to generate a help message of the\r
- * command-line options\r
- */\r
- String description() default "";\r
-\r
-}\r