about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2016-04-17 03:24:46 -0700
committerbors <bors@rust-lang.org>2016-04-17 03:24:46 -0700
commitf207ddb9bf22b5832e660183aee74c6356edee1c (patch)
tree414a648606a5dbe5ba1b3df48cf0206a5a602aa0
parentd8d71747fea8ade214cd2da9703d1823b6b314a8 (diff)
parent9da67dae52e18a078d071acbcad592a5f02a8392 (diff)
downloadrust-f207ddb9bf22b5832e660183aee74c6356edee1c.tar.gz
rust-f207ddb9bf22b5832e660183aee74c6356edee1c.zip
Auto merge of #33012 - pravic:describe-L-rustc-option, r=alexcrichton
List possible keys of the -L rustc option.

Since `rustc --help -v` does not describe it, only *rustc.1* man page, but there is no man for Windows.

r? @alexcrichton
cc @steveklabnik
-rw-r--r--src/librustc/session/config.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/librustc/session/config.rs b/src/librustc/session/config.rs
index 472f526e914..347221ad5d4 100644
--- a/src/librustc/session/config.rs
+++ b/src/librustc/session/config.rs
@@ -888,8 +888,9 @@ pub fn rustc_short_optgroups() -> Vec<RustcOptGroup> {
     vec![
         opt::flag_s("h", "help", "Display this message"),
         opt::multi_s("", "cfg", "Configure the compilation environment", "SPEC"),
-        opt::multi_s("L", "",   "Add a directory to the library search path",
-                   "[KIND=]PATH"),
+        opt::multi_s("L", "",   "Add a directory to the library search path. The
+                             optional KIND can be one of dependency, crate, native,
+                             framework or all (the default).", "[KIND=]PATH"),
         opt::multi_s("l", "",   "Link the generated crate(s) to the specified native
                              library NAME. The optional KIND can be one of
                              static, dylib, or framework. If omitted, dylib is