From 8abcafe7ad1f3bdf48a0ba73a2d18d80fdeabfde Mon Sep 17 00:00:00 2001 From: Kevin Cantu Date: Mon, 30 Jan 2012 19:02:20 -0800 Subject: Updating the manpage and usage message --- src/comp/driver/rustc.rs | 79 +++++++++++++++++++++++++++--------------------- 1 file changed, 44 insertions(+), 35 deletions(-) (limited to 'src/comp') diff --git a/src/comp/driver/rustc.rs b/src/comp/driver/rustc.rs index 12d10e80653..f0e535d36fd 100644 --- a/src/comp/driver/rustc.rs +++ b/src/comp/driver/rustc.rs @@ -21,43 +21,52 @@ fn version(argv0: str) { } fn usage(argv0: str) { - io::stdout().write_str(#fmt["usage: %s [options] \n", argv0] + + io::stdout().write_str(#fmt["Usage: %s [options] \n", argv0] + " -options: - - -h --help display this message - -v --version print version info and exit - - -o write output to - --out-dir write output to compiler-chosen filename in - --lib compile a library crate - --bin compile an executable crate (default) - --static use or produce static libraries - --pretty [type] pretty-print the input instead of compiling - --ls list the symbols defined by a crate file - -L add a directory to the library search path - --no-verify suppress LLVM verification step (slight speedup) - --parse-only parse only; do not compile, assemble, or link - --no-trans run all passes except translation; no output - -g produce debug info - --opt-level optimize with possible levels 0-3 - -O equivalent to --opt-level=2 - -S compile only; do not assemble or link - --no-asm-comments do not add comments into the assembly source - -c compile and assemble, but do not link - --emit-llvm produce an LLVM bitcode file - --save-temps write intermediate files in addition to normal output - --stats gather and report various compilation statistics - --cfg configure the compilation environment - --time-passes time the individual phases of the compiler - --time-llvm-passes time the individual phases of the LLVM backend - --sysroot override the system root - --target target to compile for (default: host triple) - --test build test harness - --gc garbage collect shared data (experimental/temporary) +Options: + + --bin Compile an executable crate (default) + -c Compile and assemble, but do not link + --cfg Configure the compilation environment + --emit-llvm Produce an LLVM bitcode file + -g Produce debug info + --gc Garbage collect shared data (experimental/temporary) + -h --help Display this message + -L Add a directory to the library search path + --lib Compile a library crate + --ls List the symbols defined by a compiled library crate + --no-asm-comments Do not add comments into the assembly source + --no-lint-ctypes Suppress warnings for possibly incorrect ctype usage + --no-trans Run all passes except translation; no output + --no-verify Suppress LLVM verification step (slight speedup) + (see http://llvm.org/docs/Passes.html for detail) + -O Equivalent to --opt-level=2 + -o Write output to + --opt-level Optimize with possible levels 0-3 + --out-dir Write output to compiler-chosen filename in + --parse-only Parse only; do not compile, assemble, or link + --pretty [type] Pretty-print the input instead of compiling; + valid types are: normal (un-annotated source), + expanded (crates expanded), typed (crates expanded, + with type annotations), or identified (fully + parenthesized, AST nodes and blocks with IDs) + -S Compile only; do not assemble or link + --save-temps Write intermediate files (.bc, .opt.bc, .o) + in addition to normal output + --static Use or produce static libraries or binaries + --stats Print compilation statistics + --sysroot Override the system root + --test Build a test harness + --target Target cpu-manufacturer-kernel[-os] to compile for + (default: host triple) + (see http://sources.redhat.com/autobook/autobook/ + autobook_17.html for detail) + + --time-passes Time the individual phases of the compiler + --time-llvm-passes Time the individual phases of the LLVM backend + -v --version Print version info and exit --warn-unused-imports - warn about unnecessary imports - --no-lint-ctypes suppress lint-style ctypes usage check + Warn about unnecessary imports "); } -- cgit 1.4.1-3-g733a5