use anyhow::{anyhow, bail, ensure, Result};
use clap::{arg, value_parser};
use std::{
fs,
io::{BufWriter, Write},
path::PathBuf,
};
fn main() -> Result<()> {
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