about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRalph Bodenner <rkbodenner+github@gmail.com>2013-06-18 23:50:06 -0700
committerDaniel Micay <danielmicay@gmail.com>2013-06-21 00:51:28 -0400
commit525933d0a3444ca05f29f8777bf2bd1c5a2d92e3 (patch)
tree7fb54bbbb404b884692a8cf87ba96420ce6dcb5d
parent7d61b0083af0b35f46902de86e629a89068397d4 (diff)
downloadrust-525933d0a3444ca05f29f8777bf2bd1c5a2d92e3.tar.gz
rust-525933d0a3444ca05f29f8777bf2bd1c5a2d92e3.zip
Show defaults in rustdoc usage message
-rw-r--r--src/librustdoc/config.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/librustdoc/config.rs b/src/librustdoc/config.rs
index ef65cc8e5a1..942d22fa3fc 100644
--- a/src/librustdoc/config.rs
+++ b/src/librustdoc/config.rs
@@ -1,4 +1,4 @@
-// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
+// Copyright 2012-2013 The Rust Project Developers. See the COPYRIGHT
 // file at the top-level directory of this distribution and at
 // http://rust-lang.org/COPYRIGHT.
 //
@@ -59,15 +59,15 @@ fn opt_help() -> ~str { ~"h" }
 fn opts() -> ~[(getopts::Opt, ~str)] {
     ~[
         (getopts::optopt(opt_output_dir()),
-         ~"--output-dir <val>     put documents here"),
+         ~"--output-dir <val>     Put documents here (default: .)"),
         (getopts::optopt(opt_output_format()),
-         ~"--output-format <val>  either 'markdown' or 'html'"),
+         ~"--output-format <val>  'markdown' or 'html' (default)"),
         (getopts::optopt(opt_output_style()),
-         ~"--output-style <val>   either 'doc-per-crate' or 'doc-per-mod'"),
+         ~"--output-style <val>   'doc-per-crate' or 'doc-per-mod' (default)"),
         (getopts::optopt(opt_pandoc_cmd()),
-         ~"--pandoc-cmd <val>     the command for running pandoc"),
+         ~"--pandoc-cmd <val>     Command for running pandoc"),
         (getopts::optflag(opt_help()),
-         ~"-h                     print help")
+         ~"-h, --help             Print help")
     ]
 }