mirror of
https://github.com/photoprism/photoprism.git
synced 2025-12-12 08:44:04 +01:00
CLI: Improve "photoprism optimize" command help #1668
This commit is contained in:
@@ -15,17 +15,17 @@ import (
|
|||||||
// OptimizeCommand registers the index cli command.
|
// OptimizeCommand registers the index cli command.
|
||||||
var OptimizeCommand = cli.Command{
|
var OptimizeCommand = cli.Command{
|
||||||
Name: "optimize",
|
Name: "optimize",
|
||||||
Usage: "Updates estimates, titles, and other metadata",
|
Usage: "Maintains titles, estimates, and other metadata",
|
||||||
Flags: []cli.Flag{
|
Flags: []cli.Flag{
|
||||||
cli.BoolFlag{
|
cli.BoolFlag{
|
||||||
Name: "force, f",
|
Name: "force, f",
|
||||||
Usage: "update all, including recently estimated",
|
Usage: "update all, including recently optimized",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Action: optimizeAction,
|
Action: optimizeAction,
|
||||||
}
|
}
|
||||||
|
|
||||||
// optimizeAction updates estimates, titles, and other metadata.
|
// optimizeAction updates titles, estimates, and other metadata.
|
||||||
func optimizeAction(ctx *cli.Context) error {
|
func optimizeAction(ctx *cli.Context) error {
|
||||||
start := time.Now()
|
start := time.Now()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user