mirror of
https://github.com/storytold/cadcraft.git
synced 2026-12-01 18:25:32 -06:00
The CLI's run names both ways to set up DWG conversion
This commit is contained in:
@@ -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<I, T>(args: I, out: &mut dyn Write, err: &mut dyn Write) -> i32
|
||||
where
|
||||
I: IntoIterator<Item = T>,
|
||||
|
||||
Reference in New Issue
Block a user