]> git.lizzy.rs Git - rust.git/commitdiff
Move the description of -(W|A|D|F) into the `-W help` message
authorKevin Cantu <me@kevincantu.org>
Wed, 10 Oct 2012 23:35:52 +0000 (16:35 -0700)
committerKevin Cantu <me@kevincantu.org>
Wed, 10 Oct 2012 23:48:23 +0000 (16:48 -0700)
man/rustc.1
src/rustc/driver/rustc.rs

index 0e0bfe0f108c3413c1d9d03626e2529a59f0ff56..bb6457dd493e78b0e7f94868e44e359fed64e8de 100644 (file)
@@ -93,23 +93,11 @@ Target cpu\-manufacturer\-kernel[\-os] to compile for
 (see http://sources.redhat.com/autobook/autobook/
 autobook_17.html for detail)
 .TP
-\-(W|A|D|F) help
-Print available 'lint' checks and default settings
+\fB\-W help\fR
+Print 'lint' options and default settings
 .TP
-\fB\-W\fR <foo>
-warn about <foo> by default
-.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
+\fB\-Z help\fR
+Print internal options for debugging rustc
 .TP
 \fB\-v\fR \fB\-\-version\fR
 Print version info and exit
index 0f191c263fcf33fcccd0d5f51753fedd8f47f6b4..e6a9d726f6d47ba3434cf5089b7d743a4d3316cc 100644 (file)
@@ -68,21 +68,21 @@ fn usage(argv0: &str) {
                        (default: host triple)
                        (see http://sources.redhat.com/autobook/autobook/
                        autobook_17.html for detail)
-
-    -(W|A|D|F) help    Print available 'lint' checks and default settings
-
-    -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
-
+    -W help            Print 'lint' options and default settings
+    -Z help            Print internal options for debugging rustc
     -v --version       Print version info and exit
 ");
 }
 
 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 mut max_key = 0;
     for lint_dict.each_key |k| { max_key = uint::max(k.len(), max_key); }