diff options
author | 2017-07-11 14:23:46 +0200 | |
---|---|---|
committer | 2017-07-11 14:47:53 +0200 | |
commit | 456adb2267343a4e2e64f082e77169c18f9e6060 (patch) | |
tree | b63794930df06ad9afc910ca16784cf4bab812f9 /src/main/java/com/google/devtools/build/lib/runtime/mobileinstall/MobileInstallCommand.java | |
parent | 75483b58d047c3a4e26e098823dc3b77644c3c11 (diff) |
Fold OptionUsageRestrictions into OptionDocumentationCategory and OptionMetadataTags.
These are similar, no need to have both fields. Removing the "DOCUMENTED" default, the absence of UNDOCUMENTED will be used instead.
Since requiring a documentation category for undocumented options doesn't make sense, list that as one of the OptionDocumentationCategories, but list HIDDEN and INTERNAL as part of OptionMetadata. These options should list UNDOCUMENTED as their category.
PiperOrigin-RevId: 161515674
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/runtime/mobileinstall/MobileInstallCommand.java')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/runtime/mobileinstall/MobileInstallCommand.java | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/runtime/mobileinstall/MobileInstallCommand.java b/src/main/java/com/google/devtools/build/lib/runtime/mobileinstall/MobileInstallCommand.java index 4ed187fb39..70feace90e 100644 --- a/src/main/java/com/google/devtools/build/lib/runtime/mobileinstall/MobileInstallCommand.java +++ b/src/main/java/com/google/devtools/build/lib/runtime/mobileinstall/MobileInstallCommand.java @@ -43,7 +43,6 @@ import com.google.devtools.common.options.OptionDocumentationCategory; import com.google.devtools.common.options.OptionPriority; import com.google.devtools.common.options.OptionsBase; import com.google.devtools.common.options.OptionsParser; -import com.google.devtools.common.options.OptionsParser.OptionUsageRestrictions; import com.google.devtools.common.options.OptionsParsingException; import com.google.devtools.common.options.OptionsProvider; import com.google.devtools.common.options.proto.OptionFilters.OptionEffectTag; @@ -135,15 +134,14 @@ public class MobileInstallCommand implements BlazeCommand { category = "mobile-install", defaultValue = "classic", converter = ModeConverter.class, - documentationCategory = OptionDocumentationCategory.UNCATEGORIZED, + documentationCategory = OptionDocumentationCategory.UNDOCUMENTED, effectTags = {OptionEffectTag.UNKNOWN}, help = "Select how to run mobile-install. \"classic\" runs the current version of " + "mobile-install. \"skylark\" uses the new skylark version, which has support for " + "android_test. \"skylark_incremental_res\" is the same as \"skylark\" plus " + "incremental resource processing. \"skylark_incremental_res\" requires a device " - + "with root access.", - optionUsageRestrictions = OptionUsageRestrictions.UNDOCUMENTED + + "with root access." ) public Mode mode; @@ -151,10 +149,9 @@ public class MobileInstallCommand implements BlazeCommand { name = "mobile_install_aspect", category = "mobile-install", defaultValue = "@android_test_support//tools/android/mobile_install:mobile-install.bzl", - documentationCategory = OptionDocumentationCategory.UNCATEGORIZED, + documentationCategory = OptionDocumentationCategory.UNDOCUMENTED, effectTags = {OptionEffectTag.UNKNOWN}, - help = "The aspect to use for mobile-install.", - optionUsageRestrictions = OptionUsageRestrictions.UNDOCUMENTED + help = "The aspect to use for mobile-install." ) public String mobileInstallAspect; } |