Skip to content

Commit ae8e678

Browse files
committed
Move the description of -(W|A|D|F) into the -W help message
1 parent c419e77 commit ae8e678

File tree

2 files changed

+14
-26
lines changed

2 files changed

+14
-26
lines changed

man/rustc.1

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -93,23 +93,11 @@ Target cpu\-manufacturer\-kernel[\-os] to compile for
9393
(see http://sources.redhat.com/autobook/autobook/
9494
autobook_17.html for detail)
9595
.TP
96-
\-(W|A|D|F) help
97-
Print available 'lint' checks and default settings
96+
\fB\-W help\fR
97+
Print 'lint' options and default settings
9898
.TP
99-
\fB\-W\fR <foo>
100-
warn about <foo> by default
101-
.TP
102-
\fB\-A\fR <foo>
103-
allow <foo> by default
104-
.TP
105-
\fB\-D\fR <foo>
106-
deny <foo> by default
107-
.TP
108-
\fB\-F\fR <foo>
109-
forbid <foo> (deny, and deny all overrides)
110-
.TP
111-
\fB\-Z\fR help
112-
list internal options for debugging rustc
99+
\fB\-Z help\fR
100+
Print internal options for debugging rustc
113101
.TP
114102
\fB\-v\fR \fB\-\-version\fR
115103
Print version info and exit

src/rustc/driver/rustc.rs

Lines changed: 10 additions & 10 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); }

0 commit comments

Comments
 (0)