From 39a901bc72d2c5cae6dde73185efcdc839cb63c0 Mon Sep 17 00:00:00 2001 From: Hanno Braun Date: Mon, 10 Oct 2022 18:42:49 +0200 Subject: [PATCH] Fix clap deprecation warnings --- crates/fj-app/src/args.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/crates/fj-app/src/args.rs b/crates/fj-app/src/args.rs index 15d5b04ca..e3879461e 100644 --- a/crates/fj-app/src/args.rs +++ b/crates/fj-app/src/args.rs @@ -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, /// Export model to this path - #[clap(short, long)] + #[arg(short, long)] pub export: Option, /// 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, /// Model deviation tolerance - #[clap(short, long, value_parser = parse_tolerance)] + #[arg(short, long, value_parser = parse_tolerance)] pub tolerance: Option, }