mirror of https://github.com/hannobraun/Fornjot
turn the CLI "model" option to a CLI argument
This commit is contained in:
parent
6d0a1d0e15
commit
d162361fb0
|
@ -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
|
||||||
|
|
|
@ -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()?;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue