Move the description of -(W|A|D|F) into the -W help
message
This commit is contained in:
parent
c419e77cc1
commit
ae8e6781d2
2 changed files with 14 additions and 26 deletions
20
man/rustc.1
20
man/rustc.1
|
@ -93,23 +93,11 @@ Target cpu\-manufacturer\-kernel[\-os] to compile for
|
||||||
(see http://sources.redhat.com/autobook/autobook/
|
(see http://sources.redhat.com/autobook/autobook/
|
||||||
autobook_17.html for detail)
|
autobook_17.html for detail)
|
||||||
.TP
|
.TP
|
||||||
\-(W|A|D|F) help
|
\fB\-W help\fR
|
||||||
Print available 'lint' checks and default settings
|
Print 'lint' options and default settings
|
||||||
.TP
|
.TP
|
||||||
\fB\-W\fR <foo>
|
\fB\-Z help\fR
|
||||||
warn about <foo> by default
|
Print internal options for debugging rustc
|
||||||
.TP
|
|
||||||
\fB\-A\fR <foo>
|
|
||||||
allow <foo> by default
|
|
||||||
.TP
|
|
||||||
\fB\-D\fR <foo>
|
|
||||||
deny <foo> by default
|
|
||||||
.TP
|
|
||||||
\fB\-F\fR <foo>
|
|
||||||
forbid <foo> (deny, and deny all overrides)
|
|
||||||
.TP
|
|
||||||
\fB\-Z\fR help
|
|
||||||
list internal options for debugging rustc
|
|
||||||
.TP
|
.TP
|
||||||
\fB\-v\fR \fB\-\-version\fR
|
\fB\-v\fR \fB\-\-version\fR
|
||||||
Print version info and exit
|
Print version info and exit
|
||||||
|
|
|
@ -68,21 +68,21 @@ Options:
|
||||||
(default: host triple)
|
(default: host triple)
|
||||||
(see http://sources.redhat.com/autobook/autobook/
|
(see http://sources.redhat.com/autobook/autobook/
|
||||||
autobook_17.html for detail)
|
autobook_17.html for detail)
|
||||||
|
-W help Print 'lint' options and default settings
|
||||||
-(W|A|D|F) help Print available 'lint' checks and default settings
|
-Z help Print internal options for debugging rustc
|
||||||
|
|
||||||
-W <foo> warn about <foo> by default
|
|
||||||
-A <foo> allow <foo> by default
|
|
||||||
-D <foo> deny <foo> by default
|
|
||||||
-F <foo> forbid <foo> (deny, and deny all overrides)
|
|
||||||
|
|
||||||
-Z help list internal options for debugging rustc
|
|
||||||
|
|
||||||
-v --version Print version info and exit
|
-v --version Print version info and exit
|
||||||
");
|
");
|
||||||
}
|
}
|
||||||
|
|
||||||
fn describe_warnings() {
|
fn describe_warnings() {
|
||||||
|
io::println(fmt!("
|
||||||
|
Available lint options:
|
||||||
|
-W <foo> Warn about <foo>
|
||||||
|
-A <foo> Allow <foo>
|
||||||
|
-D <foo> Deny <foo>
|
||||||
|
-F <foo> Forbid <foo> (deny, and deny all overrides)
|
||||||
|
"));
|
||||||
|
|
||||||
let lint_dict = lint::get_lint_dict();
|
let lint_dict = lint::get_lint_dict();
|
||||||
let mut max_key = 0;
|
let mut max_key = 0;
|
||||||
for lint_dict.each_key |k| { max_key = uint::max(k.len(), max_key); }
|
for lint_dict.each_key |k| { max_key = uint::max(k.len(), max_key); }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue