mirror of
https://github.com/photoprism/photoprism.git
synced 2025-10-04 00:16:54 +08:00
Metadata: Improve CLI command descriptions #1736
This commit is contained in:
@@ -14,11 +14,11 @@ import (
|
||||
// OptimizeCommand registers the index cli command.
|
||||
var OptimizeCommand = cli.Command{
|
||||
Name: "optimize",
|
||||
Usage: "Performs photo metadata maintenance",
|
||||
Usage: "Updates estimates, titles, and descriptions",
|
||||
Action: optimizeAction,
|
||||
}
|
||||
|
||||
// optimizeAction starts metadata check and optimization.
|
||||
// optimizeAction updates metadata such as titles and estimate.
|
||||
func optimizeAction(ctx *cli.Context) error {
|
||||
start := time.Now()
|
||||
|
||||
@@ -35,7 +35,7 @@ func optimizeAction(ctx *cli.Context) error {
|
||||
conf.InitDb()
|
||||
|
||||
if conf.ReadOnly() {
|
||||
log.Infof("optimize: read-only mode enabled")
|
||||
log.Infof("config: read-only mode enabled")
|
||||
}
|
||||
|
||||
worker := workers.NewMeta(conf)
|
||||
|
Reference in New Issue
Block a user