mirror of
https://github.com/photoprism/photoprism.git
synced 2026-01-23 02:24:24 +00:00
CLI: Omit Hidden flag in documentation if it is false
Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
parent
72b6f5cb2c
commit
c31ee5af8a
1 changed files with 2 additions and 2 deletions
|
|
@ -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"`
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue