Skip to content

Commit

Permalink
tools: Bump clap to 4.0.10
Browse files Browse the repository at this point in the history
  • Loading branch information
kostko committed Oct 6, 2022
1 parent 78f9d60 commit 7912195
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tools/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ anyhow = "1.0"
thiserror = "1.0"
serde = { version = "1.0.137", features = ["derive"] }
toml = "0.5.9"
clap = "3.2.10"
clap = "4.0.10"
ansi_term = "0.12.1"

[[bin]]
Expand Down
3 changes: 2 additions & 1 deletion tools/bin/cargo-elf2sgxs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ fn real_main() -> Result<()> {
clap::Command::new("elf2sgxs").arg(
Arg::new("release")
.long("release")
.action(clap::ArgAction::SetTrue)
.help("Use release build artifacts"),
),
)
Expand All @@ -73,7 +74,7 @@ fn real_main() -> Result<()> {
// Build target directory.
let mut target_path = package_root.target_path();
target_path.push(TARGET_TRIPLE);
if matches.is_present("release") {
if matches.get_flag("release") {
target_path.push("release");
} else {
target_path.push("debug");
Expand Down

0 comments on commit 7912195

Please sign in to comment.