From e87c90d7adc47b8f62dd413808183f0f46b73de2 Mon Sep 17 00:00:00 2001 From: Gwilym Inzani Date: Thu, 6 Apr 2023 23:59:28 +0100 Subject: [PATCH] Remove cargo feature --- agb-gbafix/Cargo.lock | 7 ------- agb-gbafix/Cargo.toml | 2 +- agb-gbafix/src/main.rs | 5 +++-- 3 files changed, 4 insertions(+), 10 deletions(-) diff --git a/agb-gbafix/Cargo.lock b/agb-gbafix/Cargo.lock index 79b706b..3bed8d8 100644 --- a/agb-gbafix/Cargo.lock +++ b/agb-gbafix/Cargo.lock @@ -96,7 +96,6 @@ dependencies = [ "anstyle", "bitflags", "clap_lex", - "once_cell", "strsim", ] @@ -198,12 +197,6 @@ version = "0.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d59d8c75012853d2e872fb56bc8a2e53718e2cafe1a4c823143141c6d90c322f" -[[package]] -name = "once_cell" -version = "1.17.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b7e5500299e16ebb147ae15a00a942af264cf3688f47923b8fc2cd5858f23ad3" - [[package]] name = "rustix" version = "0.37.8" diff --git a/agb-gbafix/Cargo.toml b/agb-gbafix/Cargo.toml index 901a7f9..a1ac809 100644 --- a/agb-gbafix/Cargo.toml +++ b/agb-gbafix/Cargo.toml @@ -10,4 +10,4 @@ elf = "0.7" gbafix = "1" bytemuck = "1" anyhow = "1" -clap = { version = "4", features = ["cargo"] } \ No newline at end of file +clap = { version = "4" } \ No newline at end of file diff --git a/agb-gbafix/src/main.rs b/agb-gbafix/src/main.rs index 9a2e94c..4dc3e0a 100644 --- a/agb-gbafix/src/main.rs +++ b/agb-gbafix/src/main.rs @@ -1,5 +1,5 @@ use anyhow::{anyhow, bail, ensure, Result}; -use clap::{arg, command, value_parser}; +use clap::{arg, value_parser}; use std::{ fs, @@ -8,7 +8,8 @@ use std::{ }; fn main() -> Result<()> { - let matches = command!() + let matches = clap::Command::new("agb-gbafix") + .about("Convert elf files directly to a valid GBA ROM") .arg(arg!( "Input elf file").value_parser(value_parser!(PathBuf))) .arg(arg!(-o --output "Set output file, defaults to replacing INPUT's extension to .gba").value_parser(value_parser!(PathBuf))) .arg(arg!(-t --title "Set the title. At most 12 bytes"))