File tree 3 files changed +4
-3
lines changed
3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -85,6 +85,7 @@ pub fn parse_config(args: ~[~str]) -> config {
85
85
if args[ 1 ] == ~"-h" || args[ 1 ] == ~"--help" {
86
86
let message = fmt ! ( "Usage: %s [OPTIONS] [TESTNAME...]" , argv0) ;
87
87
println ( getopts:: groups:: usage ( message, groups) ) ;
88
+ println ( "" ) ;
88
89
fail ! ( )
89
90
}
90
91
@@ -97,6 +98,7 @@ pub fn parse_config(args: ~[~str]) -> config {
97
98
if getopts:: opt_present ( matches, "h" ) || getopts:: opt_present ( matches, "help" ) {
98
99
let message = fmt ! ( "Usage: %s [OPTIONS] [TESTNAME...]" , argv0) ;
99
100
println ( getopts:: groups:: usage ( message, groups) ) ;
101
+ println ( "" ) ;
100
102
fail ! ( )
101
103
}
102
104
Original file line number Diff line number Diff line change @@ -680,7 +680,7 @@ pub mod groups {
680
680
return brief. to_owned ( ) +
681
681
"\n \n Options:\n " +
682
682
rows. collect :: < ~[ ~str ] > ( ) . connect ( "\n " ) +
683
- "\n \n " ;
683
+ "\n " ;
684
684
}
685
685
686
686
/** Splits a string into substrings with possibly internal whitespace,
@@ -1463,7 +1463,6 @@ Options:
1463
1463
-k --kiwi Desc
1464
1464
-p [ VAL ] Desc
1465
1465
-l VAL Desc
1466
-
1467
1466
";
1468
1467
1469
1468
let generated_usage = groups::usage(" Usage : fruits", optgroups);
@@ -1492,7 +1491,6 @@ Options:
1492
1491
-k --kiwi This is a long description which won' t be wrapped..+..
1493
1492
-a --apple This is a long description which _will_ be
1494
1493
wrapped..+..
1495
-
1496
1494
";
1497
1495
1498
1496
let usage = groups::usage(" Usage : fruits", optgroups);
Original file line number Diff line number Diff line change @@ -191,6 +191,7 @@ fn optgroups() -> ~[getopts::groups::OptGroup] {
191
191
fn usage ( binary : & str , helpstr : & str ) -> ! {
192
192
let message = fmt ! ( "Usage: %s [OPTIONS] [FILTER]" , binary) ;
193
193
println ( groups:: usage ( message, optgroups ( ) ) ) ;
194
+ println ( "" ) ;
194
195
if helpstr == "help" {
195
196
println ( "\
196
197
The FILTER is matched against the name of all tests to run, and if any tests
You can’t perform that action at this time.
0 commit comments