use mdbook_translator::DeepSeekTranslator;
use mdbook_translator::{make_app, handle_supports, handle_preprocessing};
use std::process;
fn main() {
let matches = make_app().get_matches();
let mut preprocessor = DeepSeekTranslator::new();
if let Some(sub_args) = matches.subcommand_matches("supports") {
handle_supports(&preprocessor, sub_args);
} else if let Err(e) = handle_preprocessing(&mut preprocessor) {
eprintln!("{e:?}");
process::exit(1);
}
}