From d162361fb069626fcbb85a3d83879c08686269aa Mon Sep 17 00:00:00 2001 From: kopackiw <26244440+kopackiw@users.noreply.github.com> Date: Mon, 7 Nov 2022 23:36:14 +0100 Subject: [PATCH] turn the CLI "model" option to a CLI argument --- crates/fj-app/src/args.rs | 1 - tools/export-validator/src/main.rs | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/crates/fj-app/src/args.rs b/crates/fj-app/src/args.rs index 5b6b5e83c..8bccf7758 100644 --- a/crates/fj-app/src/args.rs +++ b/crates/fj-app/src/args.rs @@ -10,7 +10,6 @@ use fj_math::Scalar; #[command(version = fj::version::VERSION_FULL)] pub struct Args { /// The model to open - #[arg(short, long)] pub model: Option, /// Export model to this path diff --git a/tools/export-validator/src/main.rs b/tools/export-validator/src/main.rs index 22c3d1e55..299720f8f 100644 --- a/tools/export-validator/src/main.rs +++ b/tools/export-validator/src/main.rs @@ -20,7 +20,7 @@ fn main() -> anyhow::Result<()> { let exit_status = Command::new("cargo") .arg("run") .arg("--") - .args(["--model", &model]) + .arg(&model) .args(["--export", export_file_path_str]) .status()?;