Config: Update flags.go and cli_flags_test.go

Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
Michael Mayer 2023-05-13 19:38:54 +02:00
parent d98ca949ff
commit 0b780defbb
2 changed files with 5 additions and 5 deletions

View file

@ -10,7 +10,7 @@ func TestCliFlags_Cli(t *testing.T) {
cliFlags := Flags.Cli()
standard := Flags.Find([]string{})
assert.Greater(t, len(cliFlags), len(standard))
assert.Equal(t, len(cliFlags), len(standard))
}
func TestCliFlags_Find(t *testing.T) {
@ -21,5 +21,5 @@ func TestCliFlags_Find(t *testing.T) {
assert.Equal(t, len(standard), len(other))
assert.Equal(t, len(cliFlags), len(essentials))
assert.Less(t, len(other), len(essentials))
assert.Equal(t, len(other), len(essentials))
}

View file

@ -425,7 +425,7 @@ var Flags = CliFlags{
Name: "site-preview",
Usage: "sharing preview image `URL`",
EnvVar: EnvVar("SITE_PREVIEW"),
}, Tags: []string{Essentials}}, {
}}, {
Flag: cli.StringFlag{
Name: "https-proxy",
Usage: "proxy server `URL` to be used for outgoing connections*optional*",
@ -732,13 +732,13 @@ var Flags = CliFlags{
Usage: "minimum size of automatically clustered faces in `PIXELS` (20-10000)",
Value: face.ClusterSizeThreshold,
EnvVar: EnvVar("FACE_CLUSTER_SIZE"),
}, Tags: []string{Essentials}}, {
}}, {
Flag: cli.IntFlag{
Name: "face-cluster-score",
Usage: "minimum `QUALITY` score of automatically clustered faces (1-100)",
Value: face.ClusterScoreThreshold,
EnvVar: EnvVar("FACE_CLUSTER_SCORE"),
}, Tags: []string{Essentials}}, {
}}, {
Flag: cli.IntFlag{
Name: "face-cluster-core",
Usage: "`NUMBER` of faces forming a cluster core (1-100)",