diff options
Diffstat (limited to 'src/main/java/com/google/devtools/common/options/Option.java')
-rw-r--r-- | src/main/java/com/google/devtools/common/options/Option.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/main/java/com/google/devtools/common/options/Option.java b/src/main/java/com/google/devtools/common/options/Option.java index e269d33910..3b2ca30866 100644 --- a/src/main/java/com/google/devtools/common/options/Option.java +++ b/src/main/java/com/google/devtools/common/options/Option.java @@ -25,7 +25,6 @@ import java.lang.annotation.Target; @Target(ElementType.FIELD) @Retention(RetentionPolicy.RUNTIME) public @interface Option { - /** * The name of the option ("--name"). */ @@ -42,6 +41,12 @@ public @interface Option { String help() default ""; /** + * A short text string to describe the type of the expected value. E.g., <code>regex</code>. This + * is ignored for boolean, tristate, boolean_or_enum, and void options. + */ + String valueHelp() default ""; + + /** * The default value for the option. This method should only be invoked * directly by the parser implementation. Any access to default values * should go via the parser to allow for application specific defaults. |