about summary refs log tree commit diff
diff options
context:
space:
mode:
authorYuri Albuquerque <yuridenommus@gmail.com>2014-07-10 15:57:04 -0400
committerYuri Albuquerque <yuridenommus@gmail.com>2014-07-10 19:51:11 -0400
commit175d215eb63a755d7cc68203023622e25cd0b69d (patch)
tree900b8f9f27279e373cb6ef2bdea4b42b92914591
parent345886cfddd881644fbf8c0e0c1487102b460cf6 (diff)
downloadrust-175d215eb63a755d7cc68203023622e25cd0b69d.tar.gz
rust-175d215eb63a755d7cc68203023622e25cd0b69d.zip
Some documentation fixes and improvements
-rw-r--r--man/rustc.13
-rw-r--r--src/etc/zsh/_rust10
2 files changed, 10 insertions, 3 deletions
diff --git a/man/rustc.1 b/man/rustc.1
index 2484960cac6..392818e95a1 100644
--- a/man/rustc.1
+++ b/man/rustc.1
@@ -12,6 +12,9 @@ This program is a compiler for the Rust language, available at
 .SH OPTIONS
 
 .TP
+\fB\-\-crate-name NAME\fR
+Specify the name of the crate being built
+.TP
 \fB\-\-crate-type=[bin|lib|dylib|rlib|staticlib]\fR
 Configure the flavor of rust crate that is generated (default `bin`)
 .TP
diff --git a/src/etc/zsh/_rust b/src/etc/zsh/_rust
index 9c821117205..b423191d54a 100644
--- a/src/etc/zsh/_rust
+++ b/src/etc/zsh/_rust
@@ -9,10 +9,12 @@ _rustc_opts_switches=(
     -c'[Compile and assemble, but do not link]'
     --cfg'[Configure the compilation environment]'
     --crate-id'[Output the crate id and exit]'
-    --crate-file-name'[Output the file(s) that would be written if compilation continued and exit]'
-    --crate-name'[Output the crate name and exit]'
-    --dep-info'[Output dependency info to <filename> after compiling]'
+    --crate-file-name'[deprecated in favor of --print-file-name]'
+    --crate-name'[Specify the name of the crate being built]'
     --crate-type'[Specify the type of crate to crate]'
+    --debuginfo'[Emit DWARF debug info to the objects created: 0 = no debug info, 1 = line-tables only (for stacktraces and breakpoints), 2 = full debug info with variable and type information (same as -g)]'
+    --dep-info'[Output dependency info to <filename> after compiling]'
+    -g'[Equivalent to --debuginfo=2]'
     {-h,--help}'[Display this message]'
     -L'[Add a directory to the library search path]'
     --linker'[Program to use for linking instead of the default.]'
@@ -29,6 +31,8 @@ _rustc_opts_switches=(
     --parse-only'[Parse only; do not compile, assemble, or link]'
     --passes'[Comma or space separated list of pass names to use]'
     --pretty'[Pretty-print the input instead of compiling]'
+    --print-crate-name'[Output the crate name and exit]'
+    --print-file-name'[Output the file(s) that would be written if compilation continued and exit]'
     --save-temps'[Write intermediate files (.bc, .opt.bc, .o) in addition to normal output]'
     --sysroot'[Override the system root]'
     --test'[Build a test harness]'