mirror of
https://github.com/encounter/decomp-toolkit.git
synced 2025-07-07 05:36:03 +00:00
14 lines
336 B
Rust
14 lines
336 B
Rust
use anyhow::{Error, Result};
|
|
use argp::FromArgs;
|
|
use nodtool::SubCommand;
|
|
|
|
#[derive(FromArgs, Debug)]
|
|
/// Commands for processing disc images.
|
|
#[argp(subcommand, name = "disc")]
|
|
pub struct Args {
|
|
#[argp(subcommand)]
|
|
command: SubCommand,
|
|
}
|
|
|
|
pub fn run(args: Args) -> Result<()> { nodtool::run(args.command).map_err(Error::new) }
|