Skip to content

Commit a1f9a0f

Browse files
committed
Merge pull request #3718 from killerswan/manpage_04
Update the manpage for 0.4
2 parents 3d31a6b + ae8e678 commit a1f9a0f

File tree

2 files changed

+31
-34
lines changed

2 files changed

+31
-34
lines changed

man/rustc.1

Lines changed: 20 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.TH RUSTC "1" "July 2012" "rustc 0.3" "User Commands"
1+
.TH RUSTC "1" "October 2012" "rustc 0.4" "User Commands"
22
.SH NAME
33
rustc \- rust compiler
44
.SH SYNOPSIS
@@ -42,6 +42,9 @@ Compile a library crate
4242
\fB\-\-ls\fR
4343
List the symbols defined by a compiled library crate
4444
.TP
45+
\fB\-\-jit\fR
46+
Execute using JIT (experimental)
47+
.TP
4548
\fB\-\-no\-trans\fR
4649
Run all passes except translation; no output
4750
.TP
@@ -62,9 +65,9 @@ Parse only; do not compile, assemble, or link
6265
.TP
6366
\fB\-\-pretty\fR [type]
6467
Pretty\-print the input instead of compiling;
65-
valid types are: \fBnormal\fR (un\-annotated source),
66-
\fBexpanded\fR (crates expanded), \fBtyped\fR (crates expanded,
67-
with type annotations), or \fBidentified\fR (fully
68+
valid types are: normal (un\-annotated source),
69+
expanded (crates expanded), typed (crates expanded,
70+
with type annotations), or identified (fully
6871
parenthesized, AST nodes and blocks with IDs)
6972
.TP
7073
\fB\-S\fR
@@ -75,7 +78,8 @@ Write intermediate files (.bc, .opt.bc, .o)
7578
in addition to normal output
7679
.TP
7780
\fB\-\-static\fR
78-
Use or produce static libraries or binaries (experimental)
81+
Use or produce static libraries or binaries
82+
(experimental)
7983
.TP
8084
\fB\-\-sysroot\fR <path>
8185
Override the system root
@@ -84,24 +88,16 @@ Override the system root
8488
Build a test harness
8589
.TP
8690
\fB\-\-target\fR <triple>
87-
Target cpu\-manufacturer\-kernel[\-os] to compile for (default: host triple)
88-
(see <\fBhttp://sources.redhat.com/autobook/autobook/autobook_17.html\fR> for
89-
detail)
90-
.TP
91-
\fB\-W\fR <foo>
92-
enable warning <foo>
93-
.TP
94-
\fB\-W\fR no\-<foo>
95-
disable warning <foo>
96-
.TP
97-
\fB\-W\fR err\-<foo>
98-
enable warning <foo> as an error
91+
Target cpu\-manufacturer\-kernel[\-os] to compile for
92+
(default: host triple)
93+
(see http://sources.redhat.com/autobook/autobook/
94+
autobook_17.html for detail)
9995
.TP
100-
\fB\-W\fR help
101-
Print available warnings and default settings
96+
\fB\-W help\fR
97+
Print 'lint' options and default settings
10298
.TP
103-
\fB\-Z\fR help
104-
list internal options for debugging rustc
99+
\fB\-Z help\fR
100+
Print internal options for debugging rustc
105101
.TP
106102
\fB\-v\fR \fB\-\-version\fR
107103
Print version info and exit
@@ -117,11 +113,12 @@ To build either with a crate (.rc) file:
117113
$ rustc hello.rc
118114

119115
.SH "BUGS"
120-
See <\fBhttps://github.com/mozilla/rust/issues\fR> for a list of known bugs.
116+
See <\fBhttps://github.com/mozilla/rust/issues\fR> for issues.
121117

122118
.SH "AUTHOR"
123119
See \fBAUTHORS.txt\fR in the rust source distribution. Graydon Hoare
124120
<\fI[email protected]\fR> is the project leader.
125121

126122
.SH "COPYRIGHT"
127-
See \fBLICENSE.txt\fR in the rust source distribution.
123+
This work is licensed under MIT-like terms. See \fBLICENSE.txt\fR
124+
in the rust source distribution.

src/rustc/driver/rustc.rs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -68,21 +68,21 @@ Options:
6868
(default: host triple)
6969
(see http://sources.redhat.com/autobook/autobook/
7070
autobook_17.html for detail)
71-
72-
-(W|A|D|F) help Print available 'lint' checks and default settings
73-
74-
-W <foo> warn about <foo> by default
75-
-A <foo> allow <foo> by default
76-
-D <foo> deny <foo> by default
77-
-F <foo> forbid <foo> (deny, and deny all overrides)
78-
79-
-Z help list internal options for debugging rustc
80-
71+
-W help Print 'lint' options and default settings
72+
-Z help Print internal options for debugging rustc
8173
-v --version Print version info and exit
8274
");
8375
}
8476
8577
fn describe_warnings() {
78+
io::println(fmt!("
79+
Available lint options:
80+
-W <foo> Warn about <foo>
81+
-A <foo> Allow <foo>
82+
-D <foo> Deny <foo>
83+
-F <foo> Forbid <foo> (deny, and deny all overrides)
84+
"));
85+
8686
let lint_dict = lint::get_lint_dict();
8787
let mut max_key = 0;
8888
for lint_dict.each_key |k| { max_key = uint::max(k.len(), max_key); }
@@ -113,7 +113,7 @@ fn describe_debug_flags() {
113113
io::println(fmt!("\nAvailable debug options:\n"));
114114
for session::debugging_opts_map().each |pair| {
115115
let (name, desc, _) = *pair;
116-
io::println(fmt!(" -Z%-20s -- %s", name, desc));
116+
io::println(fmt!(" -Z %-20s -- %s", name, desc));
117117
}
118118
}
119119

0 commit comments

Comments
 (0)