Skip to content

Commit

Permalink
Merge pull request #108 from szabgab/command-line-flag
Browse files Browse the repository at this point in the history
make the --standalone flag work without providing the word true on th…
  • Loading branch information
blandger authored May 22, 2024
2 parents d832ddd + 01ad50e commit fd2fcf0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```


Expand Down
2 changes: 0 additions & 2 deletions src/bin/mdbook-epub.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit fd2fcf0

Please sign in to comment.