Skip to content
This repository
Browse code

Move the description of -(W|A|D|F) into the `-W help` message

  • Loading branch information...
commit ae8e6781d2536a3b66d69dfad8f0d5e47eb8617c 1 parent c419e77
Kevin Cantu authored October 10, 2012
20  man/rustc.1
@@ -93,23 +93,11 @@ Target cpu\-manufacturer\-kernel[\-os] to compile for
93 93
 (see http://sources.redhat.com/autobook/autobook/
94 94
 autobook_17.html for detail)
95 95
 .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
98 98
 .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
113 101
 .TP
114 102
 \fB\-v\fR \fB\-\-version\fR
115 103
 Print version info and exit
20  src/rustc/driver/rustc.rs
@@ -68,21 +68,21 @@ Options:
68 68
                        (default: host triple)
69 69
                        (see http://sources.redhat.com/autobook/autobook/
70 70
                        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
81 73
     -v --version       Print version info and exit
82 74
 ");
83 75
 }
84 76
 
85 77
 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
+
86 86
     let lint_dict = lint::get_lint_dict();
87 87
     let mut max_key = 0;
88 88
     for lint_dict.each_key |k| { max_key = uint::max(k.len(), max_key); }

0 notes on commit ae8e678

Please sign in to comment.
Something went wrong with that request. Please try again.