Skip to content

Commit 0df59a7

Browse files
committed
refactor(cli): revert .subcommand_required(true)
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.
1 parent d4b24aa commit 0df59a7

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/bin/mdbook-catppuccin.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ pub fn make_app() -> Command {
4747
.about(crate_description!())
4848
.author(crate_authors!())
4949
.version(crate_version!())
50-
.subcommand_required(true)
5150
.subcommand(
5251
command!("supports")
5352
.arg(

0 commit comments

Comments
 (0)