Skip to content

Commit

Permalink
Fix clap deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
hannobraun committed Oct 10, 2022
1 parent ce43b6a commit 39a901b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions crates/fj-app/src/args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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>,
}

Expand Down

0 comments on commit 39a901b

Please sign in to comment.