This commit is contained in:
Maverick Liu 2025-02-21 17:43:54 +08:00
parent 749af017ca
commit 6bcc1d9682
4 changed files with 52 additions and 19 deletions

View file

@ -7,7 +7,7 @@ use epub2mdbook::convert_epub_to_mdbook;
struct Args {
/// The path to the input EPUB file
#[clap(short, long)]
input_epub_path: PathBuf,
input_epub: PathBuf,
/// The path to the output directory
#[clap(short, long)]
output_dir: Option<PathBuf>,
@ -15,7 +15,7 @@ struct Args {
fn main() -> anyhow::Result<()> {
let args = Args::parse();
convert_epub_to_mdbook(args.input_epub_path, args.output_dir)?;
convert_epub_to_mdbook(args.input_epub, args.output_dir)?;
println!("Conversion completed successfully!");
Ok(())
}