adjust cli

This commit is contained in:
Maverick Liu 2025-02-23 18:03:35 +08:00
parent 7deafd0f81
commit 6bfb11078f
3 changed files with 3 additions and 4 deletions

2
Cargo.lock generated
View file

@ -192,7 +192,7 @@ dependencies = [
[[package]] [[package]]
name = "epub2mdbook" name = "epub2mdbook"
version = "0.12.0" version = "0.13.0"
dependencies = [ dependencies = [
"clap", "clap",
"epub", "epub",

View file

@ -1,6 +1,6 @@
[package] [package]
name = "epub2mdbook" name = "epub2mdbook"
version = "0.12.0" version = "0.13.0"
edition = "2024" edition = "2024"
description = "A tool to convert EPUB files to MDBook format" description = "A tool to convert EPUB files to MDBook format"
authors = ["Maverick Liu <maverick.liu42@gmail.com>"] authors = ["Maverick Liu <maverick.liu42@gmail.com>"]

View file

@ -6,9 +6,8 @@ use epub2mdbook::{convert_epub_to_mdbook, error::Error};
#[derive(Parser)] #[derive(Parser)]
struct Args { struct Args {
/// The path to the input EPUB file /// The path to the input EPUB file
#[clap(short, long)]
input_epub: PathBuf, input_epub: PathBuf,
/// The path to the output directory, working directory by default /// The path to the output directory
#[clap(short, long, default_value = ".")] #[clap(short, long, default_value = ".")]
output_dir: PathBuf, output_dir: PathBuf,
} }