Skip to content

Commit 194d378

Browse files
committed
A simple update to the manpage based on the usage message
1 parent ae861f0 commit 194d378

File tree

1 file changed

+26
-17
lines changed

1 file changed

+26
-17
lines changed

man/rustc.1

Lines changed: 26 additions & 17 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,21 +88,25 @@ 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)
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)
95+
.TP
96+
\-(W|A|D|F) help
97+
Print available 'lint' checks and default settings
9098
.TP
9199
\fB\-W\fR <foo>
92-
enable warning <foo>
100+
warn about <foo> by default
93101
.TP
94-
\fB\-W\fR no\-<foo>
95-
disable warning <foo>
102+
\fB\-A\fR <foo>
103+
allow <foo> by default
96104
.TP
97-
\fB\-W\fR err\-<foo>
98-
enable warning <foo> as an error
105+
\fB\-D\fR <foo>
106+
deny <foo> by default
99107
.TP
100-
\fB\-W\fR help
101-
Print available warnings and default settings
108+
\fB\-F\fR <foo>
109+
forbid <foo> (deny, and deny all overrides)
102110
.TP
103111
\fB\-Z\fR help
104112
list internal options for debugging rustc
@@ -117,11 +125,12 @@ To build either with a crate (.rc) file:
117125
$ rustc hello.rc
118126

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

122130
.SH "AUTHOR"
123131
See \fBAUTHORS.txt\fR in the rust source distribution. Graydon Hoare
124132
<\fI[email protected]\fR> is the project leader.
125133

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

0 commit comments

Comments
 (0)