Skip to content

Commit d3f0ede

Browse files
committed
rustdoc: Support the --help option
1 parent 3e9284d commit d3f0ede

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rustdoc/rustdoc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ fn test_run_passes() {
8585

8686
fn main(args: ~[~str]) {
8787

88-
if vec::contains(args, ~"-h") {
88+
if args.contains(~"-h") || args.contains(~"--help") {
8989
config::usage();
9090
return;
9191
}

0 commit comments

Comments
 (0)