rustdoc: Support the --help option

This commit is contained in:
Brian Anderson 2012-09-20 15:39:23 -07:00
parent 3e9284d128
commit d3f0ede198

View File

@ -85,7 +85,7 @@ fn test_run_passes() {
fn main(args: ~[~str]) {
if vec::contains(args, ~"-h") {
if args.contains(~"-h") || args.contains(~"--help") {
config::usage();
return;
}