From 20f52997dd73cc2620c589d05c5acbdb85a6f430 Mon Sep 17 00:00:00 2001 From: Ryan Leckey Date: Tue, 23 Feb 2021 16:10:45 -0800 Subject: [PATCH] chore: allow --open for ./x.py -t doc --- x.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/x.py b/x.py index f523ebab..4a9e4103 100755 --- a/x.py +++ b/x.py @@ -13,6 +13,7 @@ parser.add_argument("-v", "--verbose", action="store_true") parser.add_argument("-q", "--quiet", action="store_true") parser.add_argument("-t", "--target") parser.add_argument("-l", "--list-targets", action="store_true") +parser.add_argument("--open", action="store_true") parser.add_argument("--coverage", action="store_true") argv, unknown = parser.parse_known_args() @@ -96,7 +97,10 @@ def run_docs(project: str): run([x for x in [ "cargo", "+nightly", "doc", "-q" if argv.quiet else None, + "--open" if argv.open else None, "--manifest-path", f"{project}/Cargo.toml", + "--document-private-items", + "--no-deps", "--all-features", ] if x], cwd=project_dir, comment=comment, tag=tag, env=env)