auto merge of #15589 : Denommus/rust/master, r=alexcrichton

I have noticed some errors and some absences that I considered essential to the usability of rustc in zsh, so I included them and updated some of the man page.
This commit is contained in:
bors 2014-07-12 00:31:46 +00:00
commit 5ad7286dc3
2 changed files with 10 additions and 3 deletions

View File

@ -11,6 +11,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`)

View File

@ -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]'