From 01ad50e359c46b07c5c0d4dc1c7f044863d95678 Mon Sep 17 00:00:00 2001 From: Gabor Szabo Date: Mon, 20 May 2024 08:00:03 +0300 Subject: [PATCH] make the --standalone flag work without providing the word true on the command line (#103) --- README.md | 4 ++-- src/bin/mdbook-epub.rs | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index b84650f05..cfc7205a2 100644 --- a/README.md +++ b/README.md @@ -50,8 +50,8 @@ the backend can be used without needing to be called by `mdbook`, useful if you only want to render the EPUB document. ``` -$ mdbook-epub -s true ./path/to/book/dir -$ mdbook-epub --standalone true ./path/to/book/dir +$ mdbook-epub -s ./path/to/book/dir +$ mdbook-epub --standalone ./path/to/book/dir ``` diff --git a/src/bin/mdbook-epub.rs b/src/bin/mdbook-epub.rs index 8e6accb2d..4ba517ecd 100644 --- a/src/bin/mdbook-epub.rs +++ b/src/bin/mdbook-epub.rs @@ -66,8 +66,6 @@ struct Args { #[structopt( short = "s", long = "standalone", - parse(try_from_str), // can that cause mdbook-epub install error?? - default_value = "false", // can that cause mdbook-epub install error?? help = "Run standalone (i.e. not as a mdbook plugin)" )] standalone: bool,