From 8bedd130c61f642084bc7d8ea32e5926c23e8a53 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Mon, 14 Sep 2020 00:29:35 +0100 Subject: [PATCH] Provide --doc Signed-off-by: Ian Jackson --- README.md | 4 ++-- nailing-cargo | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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 = $_; -- 2.30.2