mirror of
https://github.com/photoprism/photoprism.git
synced 2025-12-12 00:34:13 +01:00
CLI: Omit Hidden flag in documentation if it is false
Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
@@ -43,7 +43,7 @@ type Flag struct {
|
||||
Env []string `json:"env,omitempty"`
|
||||
Category string `json:"category,omitempty"`
|
||||
Usage string `json:"usage,omitempty"`
|
||||
Hidden bool `json:"hidden"`
|
||||
Hidden bool `json:"hidden,omitempty"`
|
||||
}
|
||||
|
||||
// Command describes a CLI command (flat form).
|
||||
@@ -57,7 +57,7 @@ type Command struct {
|
||||
Category string `json:"category,omitempty"`
|
||||
Aliases []string `json:"aliases,omitempty"`
|
||||
ArgsUsage string `json:"args_usage,omitempty"`
|
||||
Hidden bool `json:"hidden"`
|
||||
Hidden bool `json:"hidden,omitempty"`
|
||||
Flags []Flag `json:"flags,omitempty"`
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user