From 2cc0100d70cb90df5917654568cdf3cdda4e78ed Mon Sep 17 00:00:00 2001 From: Tanish Manku Date: Fri, 20 Nov 2026 07:06:06 -0700 Subject: [PATCH] The CLI's run names both ways to set up DWG conversion --- apps/cadcraft-cli/src/lib.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/cadcraft-cli/src/lib.rs b/apps/cadcraft-cli/src/lib.rs index 9f1cc0f0a..5041a1682 100644 --- a/apps/cadcraft-cli/src/lib.rs +++ b/apps/cadcraft-cli/src/lib.rs @@ -78,8 +78,9 @@ pub fn command() -> clap::Command { /// is a usage error, never a panic as with `std::env::args()`. /// /// Reading or writing DWG needs a conversion worker, which this function does not set up: the -/// binary calls `cadcraft_io::dwg_worker::use_own_worker()` first. A caller that hasn't set one up -/// gets "no worker is configured" and exit code 1 for a DWG file. +/// binary calls `cadcraft_io::dwg_worker::use_own_worker()` first. A caller that converts only its +/// own, trusted files can call `cadcraft_io::dwg_worker::allow_in_process()` instead. With +/// neither, a DWG file gets "no worker is configured" and exit code 1. pub fn run(args: I, out: &mut dyn Write, err: &mut dyn Write) -> i32 where I: IntoIterator,