use clap::{Parser, Subcommand};
use std::io;
mod commands;
#[derive(Parser)]
#[command(name = "aozora2")]
#[command(version)]
#[command(about = "青空文庫形式の変換ツール")]
struct Cli {
#[command(subcommand)]
command: Commands,
}
#[derive(Subcommand)]
enum Commands {
Strip(commands::strip::Args),
Html(commands::html::Args),
}
fn main() -> io::Result<()> {
let cli = Cli::parse();
match cli.command {
Commands::Strip(args) => commands::strip::run(args),
Commands::Html(args) => commands::html::run(args),
}
}