use anyhow::{anyhow, bail, Result};
use clap::{arg, value_parser};
use std::{
fs,
io::{BufWriter, Write},
path::PathBuf,
};
use agb_gbafix::{write_gba_file, GbaHeader, PaddingBehaviour};
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