From: Ian Jackson Date: Sun, 13 Sep 2020 23:29:35 +0000 (+0100) Subject: Provide --doc X-Git-Tag: nailing-cargo/1.0.0~53 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=8bedd130c61f642084bc7d8ea32e5926c23e8a53;p=nailing-cargo.git Provide --doc Signed-off-by: Ian Jackson --- diff --git a/README.md b/README.md index efd8096..b722bb9 100644 --- a/README.md +++ b/README.md @@ -409,8 +409,8 @@ Options * `-h` | `--help`: Print usage summary. - * `--man` | `--manual`: Format this manual into html using `pandoc` - and display it with `w3m`. + * `--doc` | `--man` | `--manual`: Format this manual into html using + `pandoc` and display it with `w3m`. Environment of the build command -------------------------------- diff --git a/nailing-cargo b/nailing-cargo index d31b9fb..1356a44 100755 --- a/nailing-cargo +++ b/nailing-cargo @@ -25,7 +25,7 @@ options: -T --target= Specify target architecture -h --help Print this message - --man --manual Display complete manual (in w3m) + --doc --man --manual Display complete manual (in w3m) --leave-nailed Leave the nailed Cargo.toml in place --just-linkfarm | --clean-linkfarm | --keep-linkfarm (default) --just-run Run the command, don't do cargo stuff @@ -941,7 +941,7 @@ sub parse_args () { } } elsif (s{^--help$}{}) { print_usage(); - } elsif (s{^--man(?:ual)?$}{}) { + } elsif (s{^--(?:doc|man|manual)?$}{}) { show_manual(); } elsif (s{^--target=}{}) { $target = $_;