diff options
author | 2016-01-20 12:11:45 +0000 | |
---|---|---|
committer | 2016-01-20 14:10:59 +0000 | |
commit | 4b73750eeffbf2404270859998a50f212ff4fee6 (patch) | |
tree | 7bcacf519d0e5f13aa17df886b967d1fec8a4075 /src/main/java/com/google/devtools/build/lib/runtime/BlazeServerStartupOptions.java | |
parent | 17e419ec05880ac15c34186b67bc3c6f304772ff (diff) |
Fix documentation of --[no]block_for_lock
The help message of this option had the effect inversed. The default
--block_for_lock setting makes the client block waiting for the lock
when needed, and the flag needs to be unset with --noblock_for_lock
to instead exit immediately.
Also rename the dummy noblock_for_lock variable to blockForLock to match
the naming convention. The variable is not used anywhere, as this class
only exists for the help messages.
--
MOS_MIGRATED_REVID=112566287
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/runtime/BlazeServerStartupOptions.java')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/runtime/BlazeServerStartupOptions.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/runtime/BlazeServerStartupOptions.java b/src/main/java/com/google/devtools/build/lib/runtime/BlazeServerStartupOptions.java index 8f66df6ac1..4a7de87849 100644 --- a/src/main/java/com/google/devtools/build/lib/runtime/BlazeServerStartupOptions.java +++ b/src/main/java/com/google/devtools/build/lib/runtime/BlazeServerStartupOptions.java @@ -169,9 +169,9 @@ public class BlazeServerStartupOptions extends OptionsBase { @Option(name = "block_for_lock", defaultValue = "true", // NOTE: purely decorative! See class docstring. category = "server startup", - help = "If set, Blaze will exit immediately instead of waiting for other " + - "Blaze commands holding the server lock to complete.") - public boolean noblock_for_lock; + help = "If unset with --noblock_for_lock, Blaze will exit immediately instead of " + + "waiting for other Blaze commands holding the server lock to complete.") + public boolean blockForLock; @Option(name = "io_nice_level", defaultValue = "-1", // NOTE: purely decorative! |