mirror of
https://github.com/cyborg42/epub2mdbook.git
synced 2026-02-10 16:24:50 -05:00
dev
This commit is contained in:
parent
749af017ca
commit
6bcc1d9682
4 changed files with 52 additions and 19 deletions
|
|
@ -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(())
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue