mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-24 00:31:34 +11:00
Remove cargo feature
This commit is contained in:
parent
d81c28a0d0
commit
e87c90d7ad
7
agb-gbafix/Cargo.lock
generated
7
agb-gbafix/Cargo.lock
generated
|
@ -96,7 +96,6 @@ dependencies = [
|
||||||
"anstyle",
|
"anstyle",
|
||||||
"bitflags",
|
"bitflags",
|
||||||
"clap_lex",
|
"clap_lex",
|
||||||
"once_cell",
|
|
||||||
"strsim",
|
"strsim",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -198,12 +197,6 @@ version = "0.3.1"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "d59d8c75012853d2e872fb56bc8a2e53718e2cafe1a4c823143141c6d90c322f"
|
checksum = "d59d8c75012853d2e872fb56bc8a2e53718e2cafe1a4c823143141c6d90c322f"
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "once_cell"
|
|
||||||
version = "1.17.1"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "b7e5500299e16ebb147ae15a00a942af264cf3688f47923b8fc2cd5858f23ad3"
|
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "rustix"
|
name = "rustix"
|
||||||
version = "0.37.8"
|
version = "0.37.8"
|
||||||
|
|
|
@ -10,4 +10,4 @@ elf = "0.7"
|
||||||
gbafix = "1"
|
gbafix = "1"
|
||||||
bytemuck = "1"
|
bytemuck = "1"
|
||||||
anyhow = "1"
|
anyhow = "1"
|
||||||
clap = { version = "4", features = ["cargo"] }
|
clap = { version = "4" }
|
|
@ -1,5 +1,5 @@
|
||||||
use anyhow::{anyhow, bail, ensure, Result};
|
use anyhow::{anyhow, bail, ensure, Result};
|
||||||
use clap::{arg, command, value_parser};
|
use clap::{arg, value_parser};
|
||||||
|
|
||||||
use std::{
|
use std::{
|
||||||
fs,
|
fs,
|
||||||
|
@ -8,7 +8,8 @@ use std::{
|
||||||
};
|
};
|
||||||
|
|
||||||
fn main() -> Result<()> {
|
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> "Input elf file").value_parser(value_parser!(PathBuf)))
|
.arg(arg!(<INPUT> "Input elf file").value_parser(value_parser!(PathBuf)))
|
||||||
.arg(arg!(-o --output <OUTPUT> "Set output file, defaults to replacing INPUT's extension to .gba").value_parser(value_parser!(PathBuf)))
|
.arg(arg!(-o --output <OUTPUT> "Set output file, defaults to replacing INPUT's extension to .gba").value_parser(value_parser!(PathBuf)))
|
||||||
.arg(arg!(-t --title <TITLE> "Set the title. At most 12 bytes"))
|
.arg(arg!(-t --title <TITLE> "Set the title. At most 12 bytes"))
|
||||||
|
|
Loading…
Reference in a new issue