Skip to content

Commit 525933d

Browse files
rkbodennerthestinger
authored andcommitted
Show defaults in rustdoc usage message
1 parent 7d61b00 commit 525933d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/librustdoc/config.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
1+
// Copyright 2012-2013 The Rust Project Developers. See the COPYRIGHT
22
// file at the top-level directory of this distribution and at
33
// http://rust-lang.org/COPYRIGHT.
44
//
@@ -59,15 +59,15 @@ fn opt_help() -> ~str { ~"h" }
5959
fn opts() -> ~[(getopts::Opt, ~str)] {
6060
~[
6161
(getopts::optopt(opt_output_dir()),
62-
~"--output-dir <val> put documents here"),
62+
~"--output-dir <val> Put documents here (default: .)"),
6363
(getopts::optopt(opt_output_format()),
64-
~"--output-format <val> either 'markdown' or 'html'"),
64+
~"--output-format <val> 'markdown' or 'html' (default)"),
6565
(getopts::optopt(opt_output_style()),
66-
~"--output-style <val> either 'doc-per-crate' or 'doc-per-mod'"),
66+
~"--output-style <val> 'doc-per-crate' or 'doc-per-mod' (default)"),
6767
(getopts::optopt(opt_pandoc_cmd()),
68-
~"--pandoc-cmd <val> the command for running pandoc"),
68+
~"--pandoc-cmd <val> Command for running pandoc"),
6969
(getopts::optflag(opt_help()),
70-
~"-h print help")
70+
~"-h, --help Print help")
7171
]
7272
}
7373

0 commit comments

Comments
 (0)