From 9587af9c909e7a6e799b663c4d5be4b50f68382e Mon Sep 17 00:00:00 2001
From: ax_rd <ax_rd@aisim.cn>
Date: Thu, 03 Sep 2026 09:19:38 +0800
Subject: [PATCH] fix: 迁移版本写入时序 + VACUUM INTO 备份 + 触发器回归测试
---
cmd/search.go | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/cmd/search.go b/cmd/search.go
index 88c0065..e7e31a1 100644
--- a/cmd/search.go
+++ b/cmd/search.go
@@ -37,6 +37,9 @@
searchCmd.Flags().BoolVar(&jsonOut, "json", false, "JSON 格式输出")
searchCmd.Flags().BoolVar(&withContent, "with-content", false, "返回完整文件内容")
searchCmd.Flags().BoolVar(&withLinks, "with-links", false, "显示关联文档链接")
+
+ // 参数不足时显示 help
+ searchCmd.SetUsageTemplate(searchCmd.Long)
}
func runSearch(cmd *cobra.Command, args []string) error {
--
Gitblit v1.10.0