chiark / gitweb /
Provide --doc
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 13 Sep 2020 23:29:35 +0000 (00:29 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 13 Sep 2020 23:29:35 +0000 (00:29 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
README.md
nailing-cargo

index efd8096cd28c375278b43793d50ebce8139f26dc..b722bb9783c6827043072743a0cf04f07cfdcf0f 100644 (file)
--- 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
 --------------------------------
index d31b9fbde92a385c41389ff02ec443a164c0ac9c..1356a44cb2e5a218df271c48f3474770df11c4ca 100755 (executable)
@@ -25,7 +25,7 @@ options:
 
   -T<arch>  --target=<arch>       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 = $_;