From 0df59a79d93ff42c2d015a29ab48a6da66515be5 Mon Sep 17 00:00:00 2001 From: sgoudham Date: Sat, 11 Nov 2023 12:26:27 +0000 Subject: [PATCH] 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. --- src/bin/mdbook-catppuccin.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/bin/mdbook-catppuccin.rs b/src/bin/mdbook-catppuccin.rs index 7eb68c7..0b2e6c3 100644 --- a/src/bin/mdbook-catppuccin.rs +++ b/src/bin/mdbook-catppuccin.rs @@ -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(