diff options
author | 2016-06-27 15:51:23 +0000 | |
---|---|---|
committer | 2016-06-27 17:07:06 +0000 | |
commit | 6f09666d994b3bd7663eb3f95e2aeaf63c85b0d7 (patch) | |
tree | 18de52fd63aa95f497579ff926513106d9c956df /src/main/java/com/google/devtools/build/lib/runtime/BlazeServerStartupOptions.java | |
parent | d19116235914e058ace1023103c7c92252207694 (diff) |
Polish the command-line reference.
- change options to print --foo=value
- allow option to specify what "value" should be
- update the documentation for the startup options
- add some indentation to the descriptions
- add some spacing between flag texts
--
MOS_MIGRATED_REVID=125960618
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 | 36 |
1 files changed, 21 insertions, 15 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 9f80d6ac92..442b53303c 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 @@ -87,9 +87,9 @@ public class BlazeServerStartupOptions extends OptionsBase { * any other embedded binaries - anything that ends up in the install_base). */ @Option(name = "install_md5", - defaultValue = "", // NOTE: purely decorative! See class docstring. - category = "hidden", - help = "This launcher option is intended for use only by tests.") + defaultValue = "", // NOTE: purely decorative! See class docstring. + category = "hidden", + help = "This launcher option is intended for use only by tests.") public String installMD5; /* Note: The help string in this option applies to the client code; not @@ -101,12 +101,13 @@ public class BlazeServerStartupOptions extends OptionsBase { defaultValue = "null", // NOTE: purely decorative! See class docstring. category = "server startup", converter = OptionsUtils.PathFragmentConverter.class, + valueHelp = "<path>", help = "If set, specifies the output location to which all build output will be written. " + "Otherwise, the location will be " + "${OUTPUT_ROOT}/_blaze_${USER}/${MD5_OF_WORKSPACE_ROOT}. Note: If you specify a " + "different option from one to the next Blaze invocation for this value, you'll likely " + "start up a new, additional Blaze server. Blaze starts exactly one server per " - + "specified output base. Typically there is one output base per workspace--however, " + + "specified output base. Typically there is one output base per workspace - however, " + "with this option you may have multiple output bases per workspace and thereby run " + "multiple builds for the same client on the same machine concurrently. See " + "'blaze help shutdown' on how to shutdown a Blaze server.") @@ -120,6 +121,7 @@ public class BlazeServerStartupOptions extends OptionsBase { defaultValue = "null", // NOTE: purely decorative! See class docstring. category = "server startup", converter = OptionsUtils.PathFragmentConverter.class, + valueHelp = "<path>", help = "The user-specific directory beneath which all build outputs are written; " + "by default, this is a function of $USER, but by specifying a constant, build outputs " + "can be shared between collaborating users.") @@ -136,6 +138,7 @@ public class BlazeServerStartupOptions extends OptionsBase { @Option(name = "max_idle_secs", defaultValue = "" + (3 * 3600), // NOTE: purely decorative! See class docstring. category = "server startup", + valueHelp = "<integer>", help = "The number of seconds the build server will wait idling before shutting down. Zero " + "means that the server will never shutdown.") public int maxIdleSeconds; @@ -182,27 +185,30 @@ public class BlazeServerStartupOptions extends OptionsBase { @Option(name = "io_nice_level", defaultValue = "-1", // NOTE: purely decorative! category = "server startup", - help = "Set a level from 0-7 for best-effort IO scheduling. 0 is highest priority, " - + "7 is lowest. The anticipatory scheduler may only honor up to priority 4. " - + "Negative values are ignored.") + valueHelp = "{-1,0,1,2,3,4,5,6,7}", + help = "Only on Linux; set a level from 0-7 for best-effort IO scheduling using the " + + "sys_ioprio_set system call. 0 is highest priority, 7 is lowest. The anticipatory " + + "scheduler may only honor up to priority 4. If set to a negative value, then Blaze " + + "does not perform a system call.") public int ioNiceLevel; @Option(name = "batch_cpu_scheduling", defaultValue = "false", // NOTE: purely decorative! category = "server startup", - help = "Use 'batch' CPU scheduling for Blaze. This policy is useful for workloads that are " - + "non-interactive, but do not want to lower their nice value. " - + "See 'man 2 sched_setscheduler'.") + help = "Only on Linux; use 'batch' CPU scheduling for Blaze. This policy is useful for " + + "workloads that are non-interactive, but do not want to lower their nice value. " + + "See 'man 2 sched_setscheduler'. If false, then Blaze does not perform a system call.") public boolean batchCpuScheduling; @Option(name = "blazerc", - // NOTE: purely decorative! - defaultValue = "In the current directory, then in the user's home directory, the file named " - + ".$(basename $0)rc (i.e. .%{product}rc)", + defaultValue = "null", // NOTE: purely decorative! category = "misc", + valueHelp = "<path>", help = "The location of the .%{product}rc file containing default values of " - + "Blaze command options. Use /dev/null to disable the search for a " - + "%{product}rc file, e.g. in release builds.") + + "Blaze command options. By default, Blaze first checks the current directory, then " + + "the user's home directory, and then looks for a file named .$(basename $0)rc " + + "(i.e. .%{product}rc). Use /dev/null to disable the search for a %{product}rc file, " + + "e.g. in release builds.") public String blazerc; @Option(name = "master_blazerc", |