Skip to content

Commit

Permalink
Merge pull request #1197 from hannobraun/clap
Browse files Browse the repository at this point in the history
Upgrade to latest version of clap
  • Loading branch information
hannobraun authored Oct 10, 2022
2 parents 1e762a8 + 39a901b commit bc949b1
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 22 deletions.
20 changes: 6 additions & 14 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion crates/fj-app/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ fj-viewer.workspace = true
fj-window.workspace = true

[dependencies.clap]
version = "3.2.22"
version = "4.0.12"
features = ["derive"]

[dependencies.figment]
Expand Down
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, parse(try_from_str = parse_parameters))]
#[arg(short, long, value_parser = parse_parameters)]
pub parameters: Option<Parameters>,

/// Model deviation tolerance
#[clap[short, long, parse(try_from_str = parse_tolerance)]]
#[arg(short, long, value_parser = parse_tolerance)]
pub tolerance: Option<Tolerance>,
}

Expand Down
2 changes: 1 addition & 1 deletion tools/automator/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ url = "2.3.0"
path = "../autolib"

[dependencies.clap]
version = "3.2.22"
version = "4.0.12"
features = ["derive"]

[dependencies.tokio]
Expand Down
2 changes: 1 addition & 1 deletion tools/release-operator/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ version = "0.11.11"
features = ["blocking"]

[dependencies.clap]
version = "3.2.22"
version = "4.0.12"
features = ["std", "derive", "env"]
default_features = false

Expand Down

0 comments on commit bc949b1

Please sign in to comment.