mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-05 11:35:21 +03:00
misc help message fix
This commit is contained in:
@@ -137,7 +137,7 @@ pub fn usage(argv0: &str) {
|
||||
|
||||
pub fn describe_warnings() {
|
||||
use extra::sort::Sort;
|
||||
printfln!("
|
||||
println("
|
||||
Available lint options:
|
||||
-W <foo> Warn about <foo>
|
||||
-A <foo> Allow <foo>
|
||||
@@ -158,7 +158,7 @@ pub fn describe_warnings() {
|
||||
fn padded(max: uint, s: &str) -> ~str {
|
||||
str::from_bytes(vec::from_elem(max - s.len(), ' ' as u8)) + s
|
||||
}
|
||||
printfln!("\nAvailable lint checks:\n");
|
||||
println("\nAvailable lint checks:\n");
|
||||
printfln!(" %s %7.7s %s",
|
||||
padded(max_key, "name"), "default", "meaning");
|
||||
printfln!(" %s %7.7s %s\n",
|
||||
@@ -174,7 +174,7 @@ fn padded(max: uint, s: &str) -> ~str {
|
||||
}
|
||||
|
||||
pub fn describe_debug_flags() {
|
||||
printfln!("\nAvailable debug options:\n");
|
||||
println("\nAvailable debug options:\n");
|
||||
let r = session::debugging_opts_map();
|
||||
for tuple in r.iter() {
|
||||
match *tuple {
|
||||
|
||||
Reference in New Issue
Block a user