文档与 usage:--data-dir 默认 ./data,示例去除冗余参数
This commit is contained in:
@@ -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
|
||||
`)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user