From efee186ae0f59962dc47b649dffdf64c25a85d3c Mon Sep 17 00:00:00 2001 From: "Arik Jones (aider)" Date: Mon, 16 Sep 2024 09:52:25 -0500 Subject: [PATCH] fix: Skip config loading and rollup execution for help command --- cmd/root.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cmd/root.go b/cmd/root.go index fc48bd2..e8063c5 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -28,6 +28,11 @@ var rootCmd = &cobra.Command{ in a given project, current path or a custom path, to a single timestamped markdown file whose name is -rollup-.md.`, PersistentPreRunE: func(cmd *cobra.Command, args []string) error { + // Skip config loading and rollup execution for help command + if cmd.Name() == "help" { + return nil + } + if configFile == "" { defaultConfig := config.DefaultConfigPath() if config.FileExists(defaultConfig) {