Skip to content

Commit

Permalink
Config: Update flags.go and cli_flags_test.go
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Mayer <michael@photoprism.app>
  • Loading branch information
lastzero committed May 13, 2023
1 parent d98ca94 commit 0b780de
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions internal/config/cli_flags_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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))
}
6 changes: 3 additions & 3 deletions internal/config/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -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*",
Expand Down Expand Up @@ -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)",
Expand Down

0 comments on commit 0b780de

Please sign in to comment.