文档与 usage:--data-dir 默认 ./data,示例去除冗余参数

This commit is contained in:
2026-09-08 16:13:36 +08:00
parent 2d02756fa3
commit 6bfe20ee00
3 changed files with 14 additions and 12 deletions
+7 -5
View File
@@ -67,12 +67,14 @@ func usage() {
fmt.Print(`pure-note — 极简高安全私人笔记 + 博客
用法:
pure-note serve [--addr :8080] [--data-dir ./data] [--behind-proxy] [--dev] [--allow-newer]
pure-note init [--data-dir ./data]
pure-note reset-password [--data-dir ./data] # 重设管理员口令并吊销全部会话
pure-note backup [--data-dir ./data] [输出路径]
pure-note gc [--data-dir ./data] [--commit] # 默认 dry-run
pure-note serve [--addr :8080] [--behind-proxy] [--dev] [--allow-newer]
pure-note init
pure-note reset-password # 重设管理员口令并吊销全部会话
pure-note backup [输出路径]
pure-note gc [--commit] # 默认 dry-run
pure-note version
# --data-dir 可指定数据目录,默认 ./data
`)
}