turn the CLI "model" option to a CLI argument

This commit is contained in:
kopackiw 2022-11-07 23:36:14 +01:00
parent 6d0a1d0e15
commit d162361fb0
2 changed files with 1 additions and 2 deletions

View File

@ -10,7 +10,6 @@ use fj_math::Scalar;
#[command(version = fj::version::VERSION_FULL)] #[command(version = fj::version::VERSION_FULL)]
pub struct Args { pub struct Args {
/// The model to open /// The model to open
#[arg(short, long)]
pub model: Option<PathBuf>, pub model: Option<PathBuf>,
/// Export model to this path /// Export model to this path

View File

@ -20,7 +20,7 @@ fn main() -> anyhow::Result<()> {
let exit_status = Command::new("cargo") let exit_status = Command::new("cargo")
.arg("run") .arg("run")
.arg("--") .arg("--")
.args(["--model", &model]) .arg(&model)
.args(["--export", export_file_path_str]) .args(["--export", export_file_path_str])
.status()?; .status()?;