rustdoc: Support the --help option
This commit is contained in:
parent
3e9284d128
commit
d3f0ede198
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user