Skip to content

Commit bdd84c0

Browse files
authored
Fixing Clap Options (#8)
1 parent ac2e977 commit bdd84c0

File tree

3 files changed

+14
-3
lines changed

3 files changed

+14
-3
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "vitepress-pdf-export"
3-
version = "0.1.2"
3+
version = "0.1.3"
44
edition = "2021"
55
authors = ["Jonathan Parris jparris@ddn.com"]
66
license-file = "LICENSE"

src/main.rs

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ struct Args {
4444
///
4545
/// The idea is run `vitepress --keep_pdfs pdfs --map map.json` which
4646
/// will render out the pdfs then run `vitepress --merge-onlys --map map.json`
47-
#[arg(short = 'o', long, action)]
47+
#[arg(long, action)]
4848
merge_only: bool,
4949
}
5050

@@ -89,3 +89,14 @@ async fn main() -> Result<ExitCode> {
8989

9090
merge_pdfs(&config, url_to_pdf)
9191
}
92+
93+
#[cfg(test)]
94+
mod tests {
95+
use super::Args;
96+
use clap::CommandFactory as _;
97+
98+
#[test]
99+
fn verify_cli() {
100+
Args::command().debug_assert()
101+
}
102+
}

0 commit comments

Comments
 (0)