🔀 Merge branch 'website/epic-games' into next
[rhynodge.git] / src / main / java / net / pterodactylus / util / envopt / Option.java
1 package net.pterodactylus.util.envopt;
2
3 import java.lang.annotation.ElementType;
4 import java.lang.annotation.Retention;
5 import java.lang.annotation.RetentionPolicy;
6 import java.lang.annotation.Target;
7
8 /**
9  * Annotation for an option that is to be parsed from the environment by {@link
10  * Parser}.
11  *
12  * @author <a href="mailto:bombe@pterodactylus.net">David â€˜Bombe’ Roden</a>
13  */
14 @Retention(RetentionPolicy.RUNTIME)
15 @Target(ElementType.FIELD)
16 public @interface Option {
17
18         String name();
19         boolean required() default false;
20         String defaultValue() default "";
21
22 }