]> git.proxmox.com Git - cargo.git/commitdiff
Add cargo doc --examples subcommand
authorQiangHeisenberg <lziqiang1@gmail.com>
Thu, 19 Aug 2021 11:23:58 +0000 (19:23 +0800)
committerQiangHeisenberg <lziqiang1@gmail.com>
Thu, 19 Aug 2021 11:23:58 +0000 (19:23 +0800)
src/bin/cargo/commands/doc.rs

index 009bd2bfa344edc4de37ee33b66b9a9b5840ad36..00b742f2c4eb7191dc0d858b8aea6adb9711be65 100644 (file)
@@ -11,6 +11,10 @@ pub fn cli() -> App {
         .arg(opt(
             "open",
             "Opens the docs in a browser after the operation",
+        ))
+               .arg(opt(
+            "examples",
+            "Document all examples",
         ))
         .arg_package_spec(
             "Package to document",