Skip to content

Commit

Permalink
refactor(cli): revert .subcommand_required(true)
Browse files Browse the repository at this point in the history
This commit reverts the flag added in #86
which prevents the binary from being
invoked without a subcommand. It turns out
that `mdBook` calls the binary without args
to invoke the preprocessor and it is not
worth detecting if the parent process was
mdbook or not.
  • Loading branch information
sgoudham committed Nov 11, 2023
1 parent d4b24aa commit 0df59a7
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/bin/mdbook-catppuccin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ pub fn make_app() -> Command {
.about(crate_description!())
.author(crate_authors!())
.version(crate_version!())
.subcommand_required(true)
.subcommand(
command!("supports")
.arg(
Expand Down

0 comments on commit 0df59a7

Please sign in to comment.