Fix clap deprecation warnings

This commit is contained in:
Hanno Braun 2022-10-10 18:42:49 +02:00
parent ce43b6a3b1
commit 39a901bc72

View File

@ -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>,
}