mirror of
https://github.com/hannobraun/Fornjot
synced 2025-01-18 22:26:09 +00:00
Fix clap deprecation warnings
This commit is contained in:
parent
ce43b6a3b1
commit
39a901bc72
@ -7,22 +7,22 @@ use fj_math::Scalar;
|
||||
|
||||
/// Fornjot - Experimental CAD System
|
||||
#[derive(clap::Parser)]
|
||||
#[clap(version = env!("FJ_VERSION_STRING"))]
|
||||
#[command(version = env!("FJ_VERSION_STRING"))]
|
||||
pub struct Args {
|
||||
/// The model to open
|
||||
#[clap(short, long)]
|
||||
#[arg(short, long)]
|
||||
pub model: Option<PathBuf>,
|
||||
|
||||
/// Export model to this path
|
||||
#[clap(short, long)]
|
||||
#[arg(short, long)]
|
||||
pub export: Option<PathBuf>,
|
||||
|
||||
/// Parameters for the model, each in the form `key=value`
|
||||
#[clap(short, long, value_parser = parse_parameters)]
|
||||
#[arg(short, long, value_parser = parse_parameters)]
|
||||
pub parameters: Option<Parameters>,
|
||||
|
||||
/// Model deviation tolerance
|
||||
#[clap(short, long, value_parser = parse_tolerance)]
|
||||
#[arg(short, long, value_parser = parse_tolerance)]
|
||||
pub tolerance: Option<Tolerance>,
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user