From 3a350c01d3898d7020106d449da22f453f75be0e Mon Sep 17 00:00:00 2001 From: Ralph Bodenner Date: Tue, 18 Jun 2013 23:50:06 -0700 Subject: [PATCH] Show defaults in rustdoc usage message --- src/librustdoc/config.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/librustdoc/config.rs b/src/librustdoc/config.rs index ef65cc8e5a1b8..942d22fa3fc26 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 put documents here"), + ~"--output-dir Put documents here (default: .)"), (getopts::optopt(opt_output_format()), - ~"--output-format either 'markdown' or 'html'"), + ~"--output-format 'markdown' or 'html' (default)"), (getopts::optopt(opt_output_style()), - ~"--output-style either 'doc-per-crate' or 'doc-per-mod'"), + ~"--output-style 'doc-per-crate' or 'doc-per-mod' (default)"), (getopts::optopt(opt_pandoc_cmd()), - ~"--pandoc-cmd the command for running pandoc"), + ~"--pandoc-cmd Command for running pandoc"), (getopts::optflag(opt_help()), - ~"-h print help") + ~"-h, --help Print help") ] }