mirror of
https://github.com/encounter/decomp-toolkit.git
synced 2025-12-20 10:25:33 +00:00
Migrate argh to argp, topological-sort to petgraph
This commit is contained in:
@@ -5,19 +5,19 @@ use std::{
|
||||
};
|
||||
|
||||
use anyhow::{anyhow, bail, ensure, Context, Result};
|
||||
use argh::FromArgs;
|
||||
use argp::FromArgs;
|
||||
use object::{Architecture, Endianness, Object, ObjectKind, ObjectSection, SectionKind};
|
||||
|
||||
use crate::util::file::map_file;
|
||||
|
||||
#[derive(FromArgs, PartialEq, Eq, Debug)]
|
||||
/// Converts an ELF file to a DOL file.
|
||||
#[argh(subcommand, name = "elf2dol")]
|
||||
#[argp(subcommand, name = "elf2dol")]
|
||||
pub struct Args {
|
||||
#[argh(positional)]
|
||||
#[argp(positional)]
|
||||
/// path to input ELF
|
||||
elf_file: PathBuf,
|
||||
#[argh(positional)]
|
||||
#[argp(positional)]
|
||||
/// path to output DOL
|
||||
dol_file: PathBuf,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user