mirror of
https://github.com/cyborg42/epub2mdbook.git
synced 2026-02-10 16:24:50 -05:00
dev
This commit is contained in:
parent
6bcc1d9682
commit
5d10769637
6 changed files with 115 additions and 49 deletions
|
|
@ -1,7 +1,7 @@
|
|||
use std::path::PathBuf;
|
||||
|
||||
use clap::Parser;
|
||||
use epub2mdbook::convert_epub_to_mdbook;
|
||||
use epub2mdbook::{convert_epub_to_mdbook, error::Error};
|
||||
|
||||
#[derive(Parser)]
|
||||
struct Args {
|
||||
|
|
@ -13,7 +13,7 @@ struct Args {
|
|||
output_dir: Option<PathBuf>,
|
||||
}
|
||||
|
||||
fn main() -> anyhow::Result<()> {
|
||||
fn main() -> Result<(), Error> {
|
||||
let args = Args::parse();
|
||||
convert_epub_to_mdbook(args.input_epub, args.output_dir)?;
|
||||
println!("Conversion completed successfully!");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue